2020-06-15 21:53:19 +00:00
|
|
|
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
|
|
|
|
pkgname=emgauwa-controller-testing
|
2020-06-25 23:47:38 +00:00
|
|
|
pkgver=0.2.0
|
2020-06-15 21:53:19 +00:00
|
|
|
pkgrel=1
|
|
|
|
epoch=
|
|
|
|
pkgdesc=""
|
|
|
|
arch=('any')
|
|
|
|
url="https://git.serguzim.me/emgauwa/controller"
|
|
|
|
license=('unknown')
|
|
|
|
groups=()
|
|
|
|
depends=('glibc' 'lmdb')
|
|
|
|
makedepends=('make' 'cmake' 'gcc')
|
|
|
|
conflicts=('emgauwa-controller')
|
|
|
|
backup=('etc/emgauwa/controller.ini')
|
|
|
|
source=("$pkgname-$pkgver.tar.gz::https://ci.serguzim.me/archive/emgauwa-controller-testing/working/$pkgname.tar.gz"
|
|
|
|
"controller.ini"
|
|
|
|
"emgauwa-controller-testing.service"
|
|
|
|
"emgauwa-controller-testing.sysusers"
|
|
|
|
"emgauwa-controller-testing.tmpfiles")
|
|
|
|
sha256sums=("SKIP"
|
2020-06-15 22:06:45 +00:00
|
|
|
"7d9d0d23190660d91045e11ccb281ffedab65d76f1f3b0fc63eae105732bd2e5"
|
2020-06-15 21:53:19 +00:00
|
|
|
"0bbc44d680be2011800c553ae863663148be0820f08349993578c88e9a23b143"
|
|
|
|
"b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798"
|
|
|
|
"5a4ce46c1302546509c0024d4614b5b0d47dde02467b7bf52b28ef6c4ead91e7")
|
|
|
|
|
2020-06-25 23:47:38 +00:00
|
|
|
pkgver() {
|
|
|
|
grep -Po "^ *VERSION \K[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$" "${pkgname}/CMakeLists.txt"
|
|
|
|
}
|
|
|
|
|
2020-06-15 21:53:19 +00:00
|
|
|
prepare() {
|
|
|
|
cd "$pkgname"
|
|
|
|
mkdir -p "build"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$pkgname/build" || exit 1
|
2020-06-15 22:06:45 +00:00
|
|
|
cmake -DWIRING_PI_DEBUG=ON ..
|
2020-06-15 21:53:19 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
install -Dm755 "${pkgname}/build/controller" "${pkgdir}/usr/bin/emgauwa-controller"
|
|
|
|
|
2020-06-15 22:06:45 +00:00
|
|
|
install -Dm660 "controller.ini" "${pkgdir}/etc/emgauwa/controller.ini"
|
2020-06-15 21:53:19 +00:00
|
|
|
install -Dm644 "${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
|
|
|
|
install -Dm644 "${pkgname}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
|
|
|
|
install -Dm644 "${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
|
|
|
|
|
2020-06-15 22:06:45 +00:00
|
|
|
install -Ddm750 "${pkgdir}/var/lib/emgauwa"
|
|
|
|
install -Ddm750 "${pkgdir}/var/lib/emgauwa/controller"
|
2020-06-15 21:53:19 +00:00
|
|
|
}
|