You are not logged in.

#1 2007-05-06 14:40:38

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

dummy texlive package

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

#2 2007-05-08 19:41:05

mitsoko
Banned
From: In the Coal Chamber
Registered: 2007-05-08
Posts: 143

Re: dummy texlive package

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

#3 2007-05-09 00:14:23

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: dummy texlive package

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

#4 2007-05-09 05:27:59

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: dummy texlive package

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

#5 2007-05-10 22:49:15

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: dummy texlive package

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

#6 2007-05-14 06:03:29

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: dummy texlive package

That error is just tar complaining that the package is empty. It's not important here.

Offline

Board footer

Powered by FluxBB