# Maintainer: John Baier # Contributor: Milan Knizek # Usage: makepkg -p PKGBUILD.git pkgname=ebusd-git _gitname=ebusd pkgver=3.1 pkgrel=1 pkgdesc="ebusd, the daemon for communication with eBUS heating systems." arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64') url=https://github.com/john30/ebusd/ license=('GPL3') depends=() makedepends=('git') optdepends=() conflicts=('ebusd' 'ebusd-git') provides=('ebusd-git') install=ebusd.install options=() backup=('etc/conf.d/ebusd') source=("git://github.com/john30/${_gitname}.git") pkgver() { cd "$_gitname" local ver=`cat VERSION` local build=`git describe --always | sed 's|-|.|g'` echo $ver-$build|sed -e 's#-#_#g' } build() { cd "${srcdir}/${_gitname}" git clean -dfx git reset --hard ./autogen.sh make -j1 } package() { cd "${srcdir}/${_gitname}" make DESTDIR="$pkgdir" install install -d "${pkgdir}/usr/lib/systemd/system" install -m 0644 contrib/archlinux/systemd/ebusd.service "${pkgdir}/usr/lib/systemd/system" install -d "${pkgdir}/etc/conf.d" install -m 0644 contrib/archlinux/conf.d/ebusd "${pkgdir}/etc/conf.d/ebusd" } md5sums=('SKIP')