summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 796b47b184403bc84041248772875827a56ae0f9 (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
# Maintainer: éclairevoyant
# Contributor: Dan Beste <dan dot ray dot beste at gmail dot com>

_pkgname='xcb-util-cursor'
pkgname="$_pkgname-git"
pkgver=0.1.4.r3.103bcca
pkgrel=1
pkgdesc='XCB cursor library'
arch=(x86_64)
url='https://xcb.freedesktop.org/'
license=(MIT)
depends=(libxcb xcb-util-image xcb-util-renderutil)
makedepends=(git gperf xorg-util-macros)
provides=("$_pkgname=${pkgver%%.r*}")
conflicts=("$_pkgname")
source=("$_pkgname::git+https://anongit.freedesktop.org/git/xcb/util-cursor.git"
        'git+https://anongit.freedesktop.org/git/xcb/util-common-m4.git')
b2sums=('SKIP'
        'SKIP')

pkgver() {
	git -C $_pkgname describe --long --tags | sed 's/^xcb-util-cursor-//;s/\([^-]*-\)g/r\1/;s/-/./g'
}

prepare() {
	cd $_pkgname

	git submodule init
	git config submodule.m4.url "$srcdir/util-common-m4"
	git -c protocol.file.allow=always submodule update
}

build() {
	cd $_pkgname

	./autogen.sh --prefix=/usr
	make
}

package() {
	cd $_pkgname

	DESTDIR="$pkgdir" make install
	install -vDm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}