summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e40bd0b8b778ca95e858aa10cc9f1fc5b619e915 (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: Gary DeLaney <gld1982ltd@gmail.com>

_gitroot="git://github.com/semplice/libconfig-vapi.git"
_gitbranch=master
_gitname=libconfig-vapi

pkgname="$_gitname-git"
pkgver=0
pkgrel=1
pkgdesc="X11 Screen Saver extension library (vala bindings)."
arch=(i686 x86_64)
url="https://github.com/semplice/libconfig-vapi"
license=('LGPL')
groups=()
depends=('vala')
makedepends=()
provides=("${pkgname%}")
conflicts=("${pkgname%}" '${pkgname%-git}')
replaces=()
backup=()
options=()
install=
source=("${_gitname}::${_gitroot}#branch=${_gitbranch}")
noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "%s" "$(git describe --abbrev=0 | sed 's/[A-Za-z]*//g;s/[!@#\$%^&*()/]//g;s/-/./g')"
}


package() {
	cd "$srcdir/${pkgname%-git}"
	install -Dm644 libconfig.vapi "${pkgdir}/usr/share/vala/vapi/libconfig.vapi"
}