Initial commit for Arch Linux PKGBUILD of ebusd-git
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
# Maintainer: Milan Knizek <knizek volny cz>
|
||||
# Contributor: Milan Knizek <knizek volny cz>
|
||||
|
||||
pkgname=ebusd-git
|
||||
_gitname=ebusd
|
||||
pkgver=2faab3f
|
||||
_pkgver=1.0.0
|
||||
pkgrel=1
|
||||
pkgdesc="ebusd provides a communication interface to the energy bus (ebus)."
|
||||
arch=('i686' 'x86_64' 'armv6h')
|
||||
url=https://github.com/john30/ebusd/
|
||||
license=('GPL3')
|
||||
depends=()
|
||||
makedepends=('git')
|
||||
optdepends=()
|
||||
conflicts=('ebusd')
|
||||
provides=('ebusd')
|
||||
install=ebusd.install
|
||||
options=()
|
||||
backup=('etc/conf.d/ebusd')
|
||||
source=('git://github.com/john30/ebusd.git' 'ebusd.service' 'ebusd_conf.d')
|
||||
|
||||
# This is for -git only
|
||||
pkgver() {
|
||||
cd $_gitname
|
||||
git describe --always | sed 's|-|.|g'
|
||||
}
|
||||
|
||||
build() {
|
||||
local _gitdir=$srcdir/$_gitname
|
||||
cd "$_gitdir"
|
||||
|
||||
git clean -dfx
|
||||
git reset --hard
|
||||
# git apply -v --ignore-space-change --ignore-whitespace ../some.patch
|
||||
|
||||
./autogen.sh --prefix=/usr --sysconfdir=/etc
|
||||
make -j1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$_gitname"
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
install -d "${pkgdir}"/usr/lib/systemd/system
|
||||
install -m 0644 ../ebusd.service "${pkgdir}"/usr/lib/systemd/system
|
||||
install -d "${pkgdir}"/etc/conf.d
|
||||
install -m 0644 ../ebusd_conf.d "${pkgdir}"/etc/conf.d/ebusd
|
||||
}
|
||||
|
||||
md5sums=('SKIP'
|
||||
'15b2fdb0a219fae6feecd539e8823864'
|
||||
'a2b4d5557fd90ea30e04358da62597fb')
|
||||
Reference in New Issue
Block a user