2022-03-07 10:50:48 +01:00
|
|
|
# Contributor: Jan de Groot <jgc@archlinux.org>
|
|
|
|
# Contributor: Andreas Radke <andyrtr@archlinux.org>
|
2020-11-12 17:13:16 +01:00
|
|
|
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
|
|
|
|
|
|
|
_pkgname=xcb-util
|
2022-03-07 10:50:48 +01:00
|
|
|
pkgname=static-compat-$_pkgname
|
2020-11-12 17:13:16 +01:00
|
|
|
pkgver=0.4.0
|
|
|
|
pkgrel=3
|
|
|
|
pkgdesc="Utility libraries for XC Binding"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="https://xcb.freedesktop.org"
|
|
|
|
license=('custom')
|
2022-03-07 10:50:48 +01:00
|
|
|
depends=('static-compat-libxcb>=1.7')
|
|
|
|
makedepends=('gperf' 'xorg-util-macros' 'static-compat-xorgproto' 'static-compat-configure')
|
2020-11-12 17:13:16 +01:00
|
|
|
options=(staticlibs)
|
|
|
|
source=("https://xcb.freedesktop.org/dist/${_pkgname}-${pkgver}.tar.bz2")
|
|
|
|
sha512sums=('e60aaa6f582eacd05896c5fd7c8417938318a1288146f3a5b339f77eed24e211c6099963f8813daa621c94173d2934228936b491c0ed79b09a8a67d835867d0e')
|
|
|
|
|
|
|
|
build() {
|
2022-03-07 10:50:48 +01:00
|
|
|
source static-compat-environment
|
2020-11-12 17:13:16 +01:00
|
|
|
cd ${_pkgname}-${pkgver}
|
2022-03-07 10:50:48 +01:00
|
|
|
static-compat-configure --prefix="$static_compat_prefix" --disable-shared --enable-static
|
2020-11-12 17:13:16 +01:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2022-03-07 10:50:48 +01:00
|
|
|
source static-compat-environment
|
2020-11-12 17:13:16 +01:00
|
|
|
cd ${_pkgname}-${pkgver}
|
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-03-07 10:50:48 +01:00
|
|
|
source static-compat-environment
|
2020-11-12 17:13:16 +01:00
|
|
|
cd ${_pkgname}-${pkgver}
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
install -D -m644 COPYING \
|
|
|
|
"${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
|
|
|
|
}
|