Commit | Line | Data |
---|---|---|
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 | ||
7 | name=gzip | |
1c51353c | 8 | version=1.6 |
f44fe30f | 9 | release=2 |
ba21d467 | 10 | source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz) |
6dca1d21 JB |
11 | |
12 | build() { | |
13 | cd $name-$version | |
91339fb0 | 14 | |
6dca1d21 JB |
15 | ./configure --build=$CHOST \ |
16 | --host=$CTARGET \ | |
f44fe30f | 17 | --prefix=/usr |
91339fb0 | 18 | |
6dca1d21 JB |
19 | make |
20 | make DESTDIR=$PKG install | |
21 | ||
91339fb0 | 22 | install -d $PKG/bin |
6dca1d21 | 23 | mv $PKG/usr/bin/{gzip,gunzip,zcat} $PKG/bin |
91339fb0 | 24 | |
f44fe30f VM |
25 | rm $PKG/usr/share/man/man1/{gunzip.1,zcat.1,zcmp.1} |
26 | ln -sf gzip.1.gz $PKG/usr/share/man/man1/gunzip.1.gz | |
27 | ln -sf gzip.1.gz $PKG/usr/share/man/man1/zcat.1.gz | |
28 | ln -sf zdiff.1.gz $PKG/usr/share/man/man1/zcmp.1.gz | |
91339fb0 | 29 | |
0c77f54f VM |
30 | # make uncompress a symlink to gunzip, since the hardlink |
31 | # will not work if / and /usr are on different file systems. | |
32 | rm $PKG/usr/bin/uncompress | |
33 | ln -s /bin/gunzip $PKG/usr/bin/uncompress | |
34 | ||
f44fe30f | 35 | rm -r $PKG/usr/share/info |
6dca1d21 | 36 | } |