mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-14 01:49:03 +08:00
50 lines
1.3 KiB
Bash
50 lines
1.3 KiB
Bash
# Part of the Xorg group
|
|
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
|
|
|
|
pkgname=libxcb
|
|
pkgver=1.10
|
|
pkgrel=2
|
|
pkgdesc="X11 client-side library"
|
|
arch=(x86_64)
|
|
url="http://xcb.freedesktop.org/"
|
|
depends=('xcb-proto>=1.10' 'libxdmcp' 'libxau')
|
|
makedepends=('pkgconfig' 'libxslt' 'python')
|
|
options=('!libtool')
|
|
license=('custom')
|
|
source=($url/dist/$pkgname-$pkgver.tar.bz2
|
|
libxcb-1.1-no-pthread-stubs.patch
|
|
Ensure-xcb-owns-socket-and-no-other-threads-are-writ.patch)
|
|
sha256sums=('98d9ab05b636dd088603b64229dd1ab2d2cc02ab807892e107d674f9c3f2d5b5'
|
|
'748ed83af60468a0eb6785222e4a5ca589d28f20b9bfc60d5936ec93b8eef356'
|
|
'47de1025bb16446b9e69ff7b6b262a0a1af957d350afe897421b9105c89befeb')
|
|
|
|
prepare() {
|
|
cd "$pkgname-$pkgver"
|
|
patch -Np1 -i ../libxcb-1.1-no-pthread-stubs.patch
|
|
autoreconf -vfi
|
|
|
|
# fix FS#40289 merged upstream
|
|
patch -Np1 -i ../Ensure-xcb-owns-socket-and-no-other-threads-are-writ.patch
|
|
}
|
|
|
|
build() {
|
|
cd "$pkgname-$pkgver"
|
|
./configure --prefix=/usr \
|
|
--enable-xinput \
|
|
--enable-xkb \
|
|
--disable-static
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname-$pkgver
|
|
make -k check
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname-$pkgver"
|
|
make DESTDIR="$pkgdir" install
|
|
install -m755 -d "$pkgdir/usr/share/licenses/$pkgname"
|
|
install -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname"
|
|
}
|