summaryrefslogtreecommitdiffstats
path: root/gzip/Pkgfile.old
blob: f916b2ad521baae9050ac9070a747db204581f72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Description: GNU compression utility (replacement for compress)
# URL:         http://www.gzip.org/
# Maintainer:  CRUX System Team, core-ports at crux dot nu

name=gzip
version=1.4
release=1
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz)

build() {
    cd $name-$version
    ./configure --prefix=/usr --mandir=/usr/man
    make
    make DESTDIR=$PKG install

    mkdir -p $PKG/bin
    mv $PKG/usr/bin/{gzip,gunzip,zcat} $PKG/bin
    
    rm $PKG/usr/man/man1/{gunzip.1,zcat.1,zcmp.1}
    ln -sf gzip.1.gz  $PKG/usr/man/man1/gunzip.1.gz
    ln -sf gzip.1.gz  $PKG/usr/man/man1/zcat.1.gz
    ln -sf zdiff.1.gz $PKG/usr/man/man1/zcmp.1.gz
    
    # make uncompress a symlink to gunzip, since it will not work
    # if / and /usr are on different file systems.
    rm $PKG/usr/bin/uncompress
    ln -s /bin/gunzip $PKG/usr/bin/uncompress

    rm -r $PKG/usr/share
}