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 | |
4 | # Arch Maintainer, CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org | |
5 | # Depends on: | |
6 | ||
7 | name=gzip | |
8 | version=1.3.12 | |
9 | release=3 | |
10 | source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz \ | |
11 | $name-futimens.patch) | |
12 | ||
13 | build() { | |
14 | cd $name-$version | |
15 | patch -p1 -i $SRC/$name-futimens.patch | |
16 | ./configure --build=$CHOST \ | |
17 | --host=$CTARGET \ | |
18 | --prefix=/usr \ | |
19 | --mandir=/usr/man | |
20 | make | |
21 | make DESTDIR=$PKG install | |
22 | ||
23 | mkdir -p $PKG/bin | |
24 | mv $PKG/usr/bin/{gzip,gunzip,zcat} $PKG/bin | |
25 | rm $PKG/usr/man/man1/{gunzip.1,zcat.1,zcmp.1} | |
26 | ln -sf gzip.1.gz $PKG/usr/man/man1/gunzip.1.gz | |
27 | ln -sf gzip.1.gz $PKG/usr/man/man1/zcat.1.gz | |
28 | ln -sf zdiff.1.gz $PKG/usr/man/man1/zcmp.1.gz | |
29 | # make uncompress a symlink to gunzip, since it will not work | |
30 | # if / and /usr are on different file systems. | |
31 | rm $PKG/usr/bin/uncompress | |
32 | ln -s /bin/gunzip $PKG/usr/bin/uncompress | |
33 | rm -r $PKG/usr/share | |
34 | } |