blob: 17e6c26ae947595cbc513ead0fc5179ec1699d9c (
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
46
47
48
49
|
# Contributer: nutcase84@protonmail.com
# Contributor: 3ED <krzysztof1987 (at) gmail /dot/ com>
# Contributor:Xemertix <arch88(at)katamail(dot)com>
# Contributor: dimaqq@gmail.com
# Contributor: arch(at)konzertheld(dot)de
pkgname=ddccontrol-db-git
_pkgname=ddccontrol-db
pkgver=20120905.r130da80
pkgrel=1
pkgdesc="Monitor database for DDCControl"
arch=('any')
url="https://github.com/ddccontrol/ddccontrol-db"
license=('GPL')
depends=()
makedepends=('git' 'intltool' 'automake' 'm4' 'autoconf')
provides=('ddccontrol-db')
conflicts=('ddccontrol-db')
source=($_pkgname::git+https://github.com/ddccontrol/ddccontrol-db.git)
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
_gitver="$(git show -s --format="%ci %h" 2> /dev/null)"
_gitver="${_gitver//[^[:alnum:][:space:]]/}"
#printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
echo "${_gitver%% *}.r${_gitver##* }"
}
prepare() {
cd "$srcdir/$_pkgname"
# PKGBUILD should be non-interactive...
sed -e 's:read dummy < /dev/tty::' "$(which gettextize)" > gettextize
chmod +x gettextize
sed -e 's:^gettextize :./gettextize :' -i autogen.sh
./autogen.sh
}
build() {
cd "$srcdir/$_pkgname"
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/$_pkgname"
make DESTDIR="${pkgdir}" install
}
|