summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 40a9d162dddcf0030694b89b2d5de2eda81821c5 (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/libxss-vapi.git"
_gitbranch=master
_gitname=libxss-vapi

pkgname="$_gitname-git"
pkgver=1.0.2.1
pkgrel=1
pkgdesc="X11 Screen Saver extension library (vala bindings)."
arch=(i686 x86_64)
url="https://github.com/semplice/libxss-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 xscrnsaver.vapi "${pkgdir}/usr/share/vala/vapi/xscrnsaver.vapi"
}