blob: ef10f325b137c8d32b2e7a58c0b73aa93d1dd148 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Maintainer:
# Contributor: Vincent Grande <shoober420@gmail.com>
# Contributor: Alexander Baldeck <alexander@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
_gitname="libxcb"
_pkgname="lib32-$_gitname"
pkgname="$_pkgname-git"
pkgver=1.16.r5.g3c94601
pkgrel=1
pkgdesc="X11 client-side library (32-bit)"
#url="https://xcb.freedesktop.org/"
url="https://gitlab.freedesktop.org/xorg/lib/libxcb"
license=('X11')
arch=('x86_64')
depends=(
lib32-libxau
lib32-libxdmcp
libxcb
)
makedepends=(
autoconf
gcc-multilib
libxslt
pkgconfig
python
xorg-util-macros
xorgproto
)
provides=("$_pkgname=${pkgver%%.r*}")
conflicts=("$_pkgname")
_pkgsrc="$_gitname"
source=("$_pkgsrc"::"git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgsrc"
git describe --long --tags \
| sed -E 's/^[^0-9]+//;s/([^-]*-g)/r\1/;s/-/./g'
}
build() {
cd "$_pkgsrc"
export CC="gcc -m32 -mstackrealign"
export PKG_CONFIG="i686-pc-linux-gnu-pkg-config"
local _config_options=(
--prefix='/usr'
--enable-xinput
--enable-xkb
--disable-static
--libdir=/usr/lib32
--with-doxygen=no
)
./autogen.sh "${_config_options[@]}"
make
}
package() {
cd "$_pkgsrc"
make DESTDIR="${pkgdir:?}" install
rm -rf "${pkgdir}"/usr/{include,share}
mkdir -p "$pkgdir/usr/share/licenses"
ln -s libxcb "$pkgdir/usr/share/licenses/lib32-libxcb"
}
|