aboutsummaryrefslogtreecommitdiffstats
path: root/extra/gzip/APKBUILD
blob: eb06884d6d590420736a706a94f7216315b1e268 (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
31
32
33
34
# Contributor: Leonardo Arena <rnalrd@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gzip
pkgver=1.3.12
pkgrel=2
pkgdesc="A popular data compression program"
subpackages="$pkgname-doc"
url="http://www.gnu.org/software/gzip/"
license="GPL2"
depends=
makedepends=
install="$pkgname.post-deinstall"
source="http://ftp.gnu.org/gnu/gzip/gzip-1.3.12.tar.gz
	$install"

build() {
	cd "$srcdir/$pkgname-$pkgver"

	# avoid text relocation
	export DEFS="NO_ASM"
	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--disable-nls \
		--infodir=/usr/share/info
	make || return 1
	make DESTDIR=$pkgdir install

	mkdir -p "$pkgdir"/bin
	mv "$pkgdir"/usr/bin/gzip "$pkgdir"/usr/bin/gunzip "$pkgdir"/bin/
	ln -s /bin/gzip "$pkgdir"/usr/bin/gzip
	ln -s /bin/gunzip "$pkgdir"/usr/bin/gunzip
}
md5sums="b5bac2d21840ae077e0217bc5e4845b1  gzip-1.3.12.tar.gz
b84506d253e04db3c5af9016fead45a3  gzip.post-deinstall"