CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
e2fsprogs: updated to 1.42.13 and updated mandir
[crossrootfs.git] / gzip / Pkgfile
CommitLineData
6dca1d21
JB
1# Description: GNU compression utility (replacement for compress)
2# URL: http://www.gzip.org/
3# Maintainer: CRUX System Team, core-ports at crux dot nu
b751b192 4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
6dca1d21
JB
5# Depends on:
6
7name=gzip
1c51353c
VM
8version=1.6
9release=1
ba21d467 10source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
6dca1d21
JB
11
12build() {
13 cd $name-$version
91339fb0 14
6dca1d21
JB
15 ./configure --build=$CHOST \
16 --host=$CTARGET \
17 --prefix=/usr \
18 --mandir=/usr/man
91339fb0 19
6dca1d21
JB
20 make
21 make DESTDIR=$PKG install
22
91339fb0 23 install -d $PKG/bin
6dca1d21 24 mv $PKG/usr/bin/{gzip,gunzip,zcat} $PKG/bin
91339fb0 25
6dca1d21 26 rm $PKG/usr/man/man1/{gunzip.1,zcat.1,zcmp.1}
91339fb0
VM
27 ln -sf gzip.1.gz $PKG/usr/man/man1/gunzip.1.gz
28 ln -sf gzip.1.gz $PKG/usr/man/man1/zcat.1.gz
6dca1d21 29 ln -sf zdiff.1.gz $PKG/usr/man/man1/zcmp.1.gz
91339fb0 30
0c77f54f
VM
31 # make uncompress a symlink to gunzip, since the hardlink
32 # will not work if / and /usr are on different file systems.
33 rm $PKG/usr/bin/uncompress
34 ln -s /bin/gunzip $PKG/usr/bin/uncompress
35
6dca1d21
JB
36 rm -r $PKG/usr/share
37}