summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4dd42307f844fa88bbf79654736fd7b3c8f4a549 (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
# Maintainer: Dominik Heidler <dominik@heidler.eu>

pkgname=libmbus-git
pkgver=0.8.0.r280.g6fd4ca2
pkgrel=1
pkgdesc="Meter-bus library and utility programs"
arch=('i686' 'x86_64')
license=('BSD')
makedepends=('git')
optdepends=()
provides=('libmbus')
conflicts=('libmbus')
url="http://www.rscada.se/libmbus/"
source=('git://github.com/rscada/libmbus.git')
md5sums=('SKIP')

_gitname=libmbus

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

prepare() {
	cd $srcdir/$_gitname
	sed -i -e 's#\./configure#\./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin#' build.sh
}

build() {
	cd $srcdir/$_gitname
	./build.sh
}

package() {
	cd $srcdir/$_gitname
	make DESTDIR=$pkgdir install
}