summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8d75e32bca141c4e7ecf4f61deda4317f8408443 (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
# Maintainer: James-Adam Renquinha Henri <jarhmander@gmail.com>
pkgname=guile-xosd-git
pkgver=v0.2.1.r3.8ece6bd
pkgrel=1
pkgdesc="Guile bindings for libxosd"
arch=('x86_64')
url="https://github.com/alezost/guile-xosd"
license=('GPL')
depends=('xosd')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/alezost/guile-xosd.git')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

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
}