diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-24 08:01:31 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-24 08:01:31 +0000 |
commit | b70981b68efcce5256eb11c6cd26ae123b10b6ea (patch) | |
tree | a38be6efae5e2ba15c2e839504632f9b7bfd5f91 /main/bzip2/APKBUILD | |
parent | 2b4df81538b8398442d5296650905c70341dd8d3 (diff) | |
download | aports-b70981b68efcce5256eb11c6cd26ae123b10b6ea.tar.bz2 aports-b70981b68efcce5256eb11c6cd26ae123b10b6ea.tar.xz |
moved extra/* to main/
and fixed misc build issues
Diffstat (limited to 'main/bzip2/APKBUILD')
-rw-r--r-- | main/bzip2/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/main/bzip2/APKBUILD b/main/bzip2/APKBUILD new file mode 100644 index 0000000000..09721bb760 --- /dev/null +++ b/main/bzip2/APKBUILD @@ -0,0 +1,48 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=bzip2 +pkgver=1.0.5 +pkgrel=1 +pkgdesc="A high-quality data compression program" +url="http://sources.redhat.com/bzip2" +license="BZIP2" +depends="uclibc" +install="$pkgname.post-deinstall" +source="http://www.bzip.org/$pkgver/$pkgname-$pkgver.tar.gz + $install + bzip2-1.0.4-POSIX-shell.patch + bzip2-1.0.4-makefile-CFLAGS.patch + bzip2-1.0.4-man-links.patch + bzip2-1.0.4-saneso.patch + " +subpackages="$pkgname-dev $pkgname-doc" + +build () { + local i + cd "$srcdir"/$pkgname-$pkgver + for i in ../*.patch; do + msg "Applying ${i##*/}" + patch -p1 < $i || return 1 + done + + # Fix man path + # Generate relative symlinks + sed -i \ + -e 's:\$(PREFIX)/man:\$(PREFIX)/share/man:g' \ + -e 's:ln -s -f $(PREFIX)/bin/:ln -s :' \ + Makefile || return 1 + + # fixup broken version stuff + sed -i \ + -e "s:1\.0\.4:$pkgver:" \ + bzip2.1 bzip2.txt Makefile-libbz2_so manual.* || return 1 + + make -f Makefile-libbz2_so all || return 1 + make all || return 1 + make PREFIX="$pkgdir"/usr install || return 1 +} +md5sums="3c15a0c8d1d3ee1c46a1634d00617b1a bzip2-1.0.5.tar.gz +b84506d253e04db3c5af9016fead45a3 bzip2.post-deinstall +2e9bcfeb1614b55f5ba2d087ac65a3fe bzip2-1.0.4-POSIX-shell.patch +56b90131e3c2ae425b758de9c7be7682 bzip2-1.0.4-makefile-CFLAGS.patch +fd13ef6bc55276c7e3adc346bde56cd1 bzip2-1.0.4-man-links.patch +643983e8134723ebe53c858b1a3938ad bzip2-1.0.4-saneso.patch" |