You are not logged in.
Pages: 1
Could someone help me to create a dummy PKGBUILD which does not actually install any files, just creates a pacman database entry. The idea is that until there is a package for texlive, those who want to use it can install it manually; but there are packages which depend on tetex - so I'd want to have a package which just "provides tetex" and does nothing.
Offline
pkgname=tetex
pkgver=3.0
pkgrel=4.1
pkgdesc="TeX typesetting program"
arch=(i686 x86_64)
depends=('libxmu' 'libxpm' 'libpng' 'lesstif')
conflicts=(tetex-texmf)
url='http://www.tug.org/teTeX/'
build() {}
Offline
Well I tried something like this already, but it ends up with some error messages:
j@arch 7:11PM /data/abs-local/tetex % makepkg -w .
./PKGBUILD: line 10: syntax error near unexpected token `{}'
./PKGBUILD: line 10: `build() {}'
==> Entering fakeroot environment
./PKGBUILD: line 10: syntax error near unexpected token `{}'
./PKGBUILD: line 10: `build() {}'
==> Making package: tetex 0.1-1 (Tue May 8 19:11:59 CDT 2007)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> Validating source files with MD5sums
==> Extracting Sources...
==> Starting build()...
/usr/bin/makepkg: line 637: build: command not found
==> ERROR: Build Failed. Aborting...
Offline
That's because the build function is empty. With the above PKGBUILD, you think that the tetex package is actually installed. This one would be better:
pkgname=texlive
pkgver=1.0
pkgrel=1
pkgdesc="TeX typesetting program"
arch=(i686 x86_64)
license=
provides('tetex')
conflicts('tetex')
build() {
/bin/true
}
You might want to fill the license field and put the actual texlive version.
Offline
Thanks a lot! That was exactly what I was looking for! Although you have '=' missing in the provides and conflicts fields, it sort of works - I mean that makepkg complains:
==> Generating .FILELIST file...
tar: *: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
==> Compressing package...
tar: *: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
==> Finished making: texlive (Thu May 10 17:47:20 CDT 2007)
but makes the package. So I guess it's OK.
Offline
That error is just tar complaining that the package is empty. It's not important here.
Offline
Pages: 1