archrelease: copy trunk to extra-x86_64
[arch-packages.git] / xcb-proto / trunk / PKGBUILD
blobaaa87e71cfafd38f7e982d8d247cb8c6f9dd58be
1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
4 pkgname=xcb-proto
5 pkgver=1.15.2
6 pkgrel=1
7 pkgdesc="XML-XCB protocol descriptions"
8 arch=(any)
9 url="https://xcb.freedesktop.org/"
10 license=('custom')
11 makedepends=('python' 'libxml2')
12 source=(https://xorg.freedesktop.org/archive/individual/proto/$pkgname-$pkgver.tar.xz{,.sig}
13         0001_xcb-proto_revert_datarootdir.patch::https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/commit/d849b9534a52b0199f26c1dd30ac11aba12db9dc.patch)
14 sha512sums=('9d0b2f0a4dbbf2d64e32ff4658d1663e13d7e5f1bffc1e8d45be7b9dd5bab46e29fc1c2f6e66a7a569e374ba6756faf3c39b0b5e5560df6d7f8b68beec97659d'
15             'SKIP'
16             'SKIP')
17 #validpgpkeys=('A66D805F7C9329B4C5D82767CCC4F07FAC641EFF') # "Daniel Stone <daniels@collabora.com>"
18 validpgpkeys=('3BB639E56F861FA2E86505690FDD682D974CA72A') # "Matt Turner <mattst88@gmail.com>"
19 #validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # "Alan Coopersmith <alan.coopersmith@oracle.com>"
21 prepare() {
22   cd $pkgname-$pkgver
23   # revert pkgfile back to /usr/lib
24   patch -Rp1 -i ../0001_xcb-proto_revert_datarootdir.patch
25   autoreconf -vfi
28 build() {
29   cd $pkgname-$pkgver
30   ./configure --prefix=/usr
31   make
34 check() {
35   cd $pkgname-$pkgver 
36   make check
39 package() {
40   cd $pkgname-$pkgver
41   make DESTDIR="$pkgdir" install
42   install -m755 -d "$pkgdir/usr/share/licenses/$pkgname"
43   install -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname"