mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 01:42:15 +08:00
850fefed49
This has been scripted, some might have been missed some PKGBUILDS might be broken, so please chock when building.
44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
|
|
_pkgbasename=zlib
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=1.2.7
|
|
pkgrel=1
|
|
pkgdesc='Compression library implementing the deflate compression method found in gzip and PKZIP (32-bit)'
|
|
arch=('x86_64')
|
|
license=('custom')
|
|
url="http://www.zlib.net/"
|
|
depends=('lib32-glibc' $_pkgbasename=$pkgver)
|
|
makedepends=(gcc-multilib)
|
|
options=('!makeflags')
|
|
source=("http://zlib.net/${_pkgbasename}-${pkgver}.tar.gz")
|
|
md5sums=('60df6a37c56e7c1366cca812414f7b85')
|
|
|
|
build() {
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
cd ${srcdir}/zlib-$pkgver
|
|
./configure --prefix=/usr \
|
|
--libdir=/usr/lib32
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd ${srcdir}/zlib-$pkgver
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/zlib-$pkgver
|
|
make install DESTDIR=${pkgdir}
|
|
|
|
rm -rf "${pkgdir}"/usr/{include,share,bin}
|
|
mkdir -p "$pkgdir/usr/share/licenses"
|
|
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
|
|
}
|