summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b90ab7dde52cd2be095452ede0b52923d0453e1 (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
# Maintainer: Philipp A. <flying-sheep@web.de>
# Contributor: Doug Newgard <scimmia22 at outlook dot com>
# Contributor: NeoRaider <neoraider@universe-factory.net>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=libxcb-git
pkgver=1.12.r7.gf830eb9
pkgrel=1
pkgdesc='X11 client-side library - git version'
arch=(i686 x86_64)
url='http://xcb.freedesktop.org'
depends=(xcb-proto-git libxdmcp libxau)
makedepends=(git python xorg-util-macros libxslt libpthread-stubs)
conflicts=(libxcb)
provides=("libxcb=$pkgver")
license=(custom)
source=('git+http://anongit.freedesktop.org/git/xcb/libxcb.git')
sha256sums=(SKIP)

pkgver() {
  cd "$srcdir/${pkgname%-*}"
  git describe --tags | sed 's/-/.r/;s/-/./g'
}

build() {
  cd "$srcdir/${pkgname%-*}"

  ./autogen.sh \
    --prefix=/usr \
    --enable-xinput \
    --enable-xkb \
    --disable-static

  make
}

package() {
  cd "$srcdir/${pkgname%-*}"

  make DESTDIR="$pkgdir" install

  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}