summaryrefslogtreecommitdiffstats
path: root/base/gzip/Pkgfile
blob: 9835cab934323397381dc94cd336e873f6d975d4 (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: Programme pour compresser et décompresser des fichiers
# URL: http://www.gzip.org/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: groff

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


build() {
cd $name-$version
sed -i 's/futimens/gl_&/' gzip.c lib/utimens.{c,h}
./configure --prefix=/usr \
	--mandir=/usr/share/man \
	--bindir=/bin \
	--infodir=/usr/share/info
make
install -d $PKG/usr/bin
make DESTDIR=$PKG install
mv -v $PKG/bin/{gzexe,uncompress,zcmp,zdiff,zegrep} $PKG/usr/bin
mv -v $PKG/bin/{zfgrep,zforce,zgrep,zless,zmore,znew} $PKG/usr/bin
rm $PKG/usr/bin/uncompress
ln -s /bin/gunzip $PKG/usr/bin/uncompress
if [ -f $PKG/usr/share/info/dir ]; then 
	rm $PKG/usr/share/info/dir
fi
}