summaryrefslogtreecommitdiff
path: root/multilib/lib32-bzip2/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'multilib/lib32-bzip2/PKGBUILD')
-rw-r--r--multilib/lib32-bzip2/PKGBUILD43
1 files changed, 0 insertions, 43 deletions
diff --git a/multilib/lib32-bzip2/PKGBUILD b/multilib/lib32-bzip2/PKGBUILD
deleted file mode 100644
index 3b81ad3ec..000000000
--- a/multilib/lib32-bzip2/PKGBUILD
+++ /dev/null
@@ -1,43 +0,0 @@
-#$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
-}