lib32/lib32-libxcb/PKGBUILD
2012-11-04 12:34:32 +00:00

49 lines
1.3 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=libxcb
pkgname=lib32-libxcb
pkgver=1.9
pkgrel=1
pkgdesc="X11 client-side library (32-bit)"
arch=(x86_64)
url="http://xcb.freedesktop.org/"
depends=('lib32-libxdmcp' 'lib32-libxau'
$_pkgbasename=$pkgver)
makedepends=('pkgconfig' 'libxslt' 'python2' 'gcc-multilib' 'libtool-multilib'
'autoconf')
conflicts=('libx11<1.1.99.2')
options=('!libtool')
license=('custom')
source=(${url}/dist/${_pkgbasename}-${pkgver}.tar.bz2
libxcb-1.1-no-pthread-stubs.patch)
sha1sums=('ad2fb95eeec41ba3d39502a4f7460c3b64fdf061'
'93a5bb66ac8bd55e310c708addf5c711eb5e91f6')
build() {
cd "${srcdir}/${_pkgbasename}-${pkgver}"
patch -p1 -i "${srcdir}/libxcb-1.1-no-pthread-stubs.patch"
export CC="gcc -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
PYTHON=/usr/bin/python2 ./autogen.sh \
--prefix=/usr \
--enable-xinput \
--libdir=/usr/lib32 \
--disable-static
make
}
package() {
cd "${srcdir}/${_pkgbasename}-${pkgver}"
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/{include,share}
mkdir -p "$pkgdir/usr/share/licenses"
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
}