summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8135ff6d93b6484f82fe87e2fa46da58c723fa94 (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
# Maintainer: Jason Papakostas <vithos@gmail.com>
pkgname=xsel-git
pkgver=r81.9bfc13d
pkgrel=1
pkgdesc='a command-line program for getting and setting the contents of the X selection'
arch=(i686 x86_64)
url='http://www.vergenet.net/~conrad/software/xsel/'
license=('custom')
depends=('libx11')
makedepends=('libxt' 'git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/kfish/xsel.git')
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${pkgname%-git}"
	./autogen.sh
	./configure --prefix=/usr
	make
}

check() {
	cd "$srcdir/${pkgname%-git}"
	make -k check
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make DESTDIR="$pkgdir" install
	mkdir -p "$pkgdir/usr/share/licenses/$pkgname/"
	install -D -m0644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}