summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 678436fed31b33e6f08ff5a60b2a59dcdd12f4f2 (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
# Maintainer:
# Contributor: EatMyVenom <eat.my.venomm@gmail.com>
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Andreas B. Wagner <andreas.wagner@lowfatcomputing.org>
# Contributor: Doug Newgard <scimmia22 at outlook dot com>
# Contributor: Matt Parnell/ilikenwf <parwok@gmail.com>

_pkgname="xcb-proto"
pkgname="$_pkgname-git"
pkgver=1.16.0.r2.g1388374
pkgrel=1
pkgdesc="XML-XCB protocol descriptions"
#url="https://xcb.freedesktop.org/"
url="https://gitlab.freedesktop.org/xorg/proto/xcbproto"
license=('X11')
arch=('any')

makedepends=(
  git
  libxml2
  python
)

provides=("$_pkgname=${pkgver%%.r*}")
conflicts=("$_pkgname")

_pkgsrc="$_pkgname"
source=("$_pkgname"::"git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --long --tags \
    | sed -E 's/^[^0-9]+//;s/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd "$_pkgname"
  ./autogen.sh --prefix=/usr
  ./configure --prefix=/usr
  make
}

check() {
  cd "$_pkgname"
  make check
}

package() {
  cd "$_pkgname"
  make DESTDIR="$pkgdir" install
  install -Dm644 COPYING -t "${pkgdir:?}/usr/share/licenses/$pkgname"
}