mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 01:42:15 +08:00
55 lines
1.4 KiB
Bash
55 lines
1.4 KiB
Bash
# Part of X.org group
|
|
#
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
|
|
_pkgbasename=libxcb
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=1.11.1
|
|
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=('pkg-config' 'libxslt' 'python3' 'xorg-util-macros' 'gcc-multilib'
|
|
'autoconf')
|
|
conflicts=('libx11<1.1.99.2')
|
|
license=('custom')
|
|
source=(${url}/dist/${_pkgbasename}-${pkgver}.tar.bz2
|
|
libxcb-1.1-no-pthread-stubs.patch)
|
|
sha256sums=('b720fd6c7d200e5371affdb3f049cc8f88cff9aed942ff1b824d95eedbf69d30'
|
|
'3923bcb1930b851012968435909597d8d5251c72153511cb2982636c97100cc3')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
|
|
|
patch -Np1 -i "${srcdir}/libxcb-1.1-no-pthread-stubs.patch"
|
|
autoreconf -vfi
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
|
|
|
export CC="gcc -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
PYTHON=/usr/bin/python3 ./autogen.sh \
|
|
--prefix=/usr \
|
|
--enable-xinput \
|
|
--enable-xkb \
|
|
--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"
|
|
}
|