blob: 3c6f8514483fde917f52e1259613a9ad2967b576 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gzip
pkgver=1.7
pkgrel=0
pkgdesc="A popular data compression program"
subpackages="$pkgname-doc"
url="http://www.gnu.org/software/gzip/"
arch="all"
license="GPL2"
depends=
makedepends=
install=
source="http://ftp.gnu.org/gnu/gzip/gzip-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$_builddir"
# avoid text relocation
export DEFS="NO_ASM"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR=$pkgdir install
rm -rf "$pkgdir"/usr/lib/charset.alias
rmdir -p "$pkgdir"/usr/lib 2>/dev/null
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
# http://bugs.alpinelinux.org/issues/4011
ln -sf /bin/gunzip "$pkgdir"/usr/bin/uncompress
}
md5sums="c4abae2ddd5c6f39c6f8169693cc7ac0 gzip-1.7.tar.gz"
sha256sums="eccbaa178c7801618c887956f1668d45bb57863a9d2678bfc3e36d01fb951904 gzip-1.7.tar.gz"
sha512sums="906b04ed976661aa55617b11c99d431c531495552f97827a5974071309bfd5007316ee502c4f518e1ef64926757afdb9acc593e5c679ffbb6972648b808507d1 gzip-1.7.tar.gz"
|