added "--scanconfig", nicer directory layout

This commit is contained in:
john30
2016-01-06 20:57:30 +01:00
parent 38ee78e6de
commit 17fbd38226
11 changed files with 94 additions and 143 deletions
+46
View File
@@ -0,0 +1,46 @@
# Maintainer: John Baier <ebusd@ebusd.eu>
# Contributor: Milan Knizek <knizek volny cz>
# Usage: makepkg -p PKGBUILD.git
pkgname=ebusd-git
_gitname=ebusd
pkgver=2.0
pkgrel=1
pkgdesc="ebusd, the daemon for communication with eBUS heating systems."
arch=('i686' 'x86_64' 'armv6h')
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')