summaryrefslogtreecommitdiff
path: root/multilib/lib32-bzip2
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-08-04 23:14:34 +0000
committerroot <root@rshg054.dnsready.net>2011-08-04 23:14:34 +0000
commit7e5cd77730015792e26338edcc137acf3f1bd2ae (patch)
tree7e8d59d2d1f570618635d8136647e0903f03bc0b /multilib/lib32-bzip2
parent8c2359e2541f9d1b11443b49d8ea502b3ffea39c (diff)
Thu Aug 4 23:14:34 UTC 2011
Diffstat (limited to 'multilib/lib32-bzip2')
-rw-r--r--multilib/lib32-bzip2/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/multilib/lib32-bzip2/PKGBUILD b/multilib/lib32-bzip2/PKGBUILD
new file mode 100644
index 000000000..3b81ad3ec
--- /dev/null
+++ b/multilib/lib32-bzip2/PKGBUILD
@@ -0,0 +1,43 @@
+#$Id: PKGBUILD 53422 2011-08-03 14:41:13Z ibiru $
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: TryA <tryagainprod {at} gmail.com>
+
+_pkgbasename=bzip2
+pkgname=lib32-bzip2
+pkgver=1.0.6
+pkgrel=1
+pkgdesc="A high-quality data compression program (32-bit)"
+arch=('x86_64')
+license=('custom')
+url="http://sources.redhat.com/bzip2"
+depends=('lib32-glibc' $_pkgbasename)
+makedepends=('gcc-multilib')
+source=(http://www.bzip.org/$pkgver/bzip2-$pkgver.tar.gz)
+md5sums=('00b516f4704d4a7cb50a1d97e6e8e15b')
+
+build() {
+ cd "${srcdir}/${_pkgbasename}-${pkgver}"
+
+ sed -i "s|CC=gcc|CC=gcc -m32|" Makefile
+ sed -i "s|CC=gcc|CC=gcc -m32|" Makefile-libbz2_so
+
+ # add large-file support
+ sed -e 's/^CFLAGS=\(.*\)$/CFLAGS=\1 \$(BIGFILES)/' -i ./Makefile-libbz2_so
+
+ # use our optimization
+ sed -i "s|-O2|${CFLAGS}|g" Makefile
+ sed -i "s|-O2|${CFLAGS}|g" Makefile-libbz2_so
+
+ make -f Makefile-libbz2_so
+ make libbz2.a
+}
+
+package(){
+ cd "${srcdir}/${_pkgbasename}-${pkgver}"
+ install -Dm755 libbz2.so.1.0.6 "${pkgdir}"/usr/lib32/libbz2.so.1.0.6
+ ln -s libbz2.so.1.0.6 "${pkgdir}"/usr/lib32/libbz2.so
+ ln -s libbz2.so.1.0.6 "${pkgdir}"/usr/lib32/libbz2.so.1
+ ln -s libbz2.so.1.0.6 "${pkgdir}"/usr/lib32/libbz2.so.1.0
+
+ install -Dm644 libbz2.a ${pkgdir}/usr/lib32/libbz2.a
+}