2020-07-01 21:28:49 +00:00
|
|
|
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
|
|
|
|
pkgname=emgauwa-controller
|
2020-07-17 21:40:58 +00:00
|
|
|
pkgver=0.2.6
|
2020-07-02 13:05:40 +00:00
|
|
|
pkgrel=1
|
2020-07-01 21:28:49 +00:00
|
|
|
epoch=
|
|
|
|
pkgdesc=""
|
|
|
|
arch=('any')
|
|
|
|
url="https://git.serguzim.me/emgauwa/controller"
|
|
|
|
license=('unknown')
|
|
|
|
groups=()
|
|
|
|
depends=('glibc' 'lmdb')
|
|
|
|
makedepends=('make' 'cmake' 'gcc')
|
2020-07-01 21:40:40 +00:00
|
|
|
conflicts=('emgauwa-controller-testing')
|
2020-07-01 21:28:49 +00:00
|
|
|
backup=('etc/emgauwa/controller.ini')
|
|
|
|
source=("https://git.serguzim.me/emgauwa/controller/archive/v$pkgver.tar.gz"
|
|
|
|
"controller.ini"
|
2020-07-01 21:39:09 +00:00
|
|
|
"emgauwa-controller.service"
|
|
|
|
"emgauwa-controller.sysusers"
|
|
|
|
"emgauwa-controller.tmpfiles")
|
2020-07-17 21:42:20 +00:00
|
|
|
sha256sums=('ed6ad99e059937272f5e26b844c50dcf211d69b18596c094d092f67524b8fe35'
|
2020-08-01 14:32:54 +00:00
|
|
|
'ecfd6167e75a8fbbeb619ce99dbd9263d321443b335d985d25cb303bb0ef61db'
|
2020-07-01 21:31:51 +00:00
|
|
|
'8ece4b409d5550cdae23591217e440d8599ebf2175f2a91574c0b069314879a0'
|
2020-07-01 21:28:49 +00:00
|
|
|
'b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798'
|
2020-08-01 14:32:54 +00:00
|
|
|
'e62f47b41f0c4f116007ca0e05e0a50b45446763ccfa91b946b9d451c83ff5b4')
|
2020-07-01 21:28:49 +00:00
|
|
|
|
|
|
|
prepare() {
|
2020-07-01 21:39:09 +00:00
|
|
|
cd "controller"
|
2020-07-01 21:28:49 +00:00
|
|
|
mkdir -p "build"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2020-07-01 21:39:09 +00:00
|
|
|
cd "controller/build" || exit 1
|
2020-07-01 21:43:27 +00:00
|
|
|
cmake ..
|
2020-07-01 21:28:49 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-07-01 21:39:09 +00:00
|
|
|
install -Dm755 "controller/build/controller" "${pkgdir}/usr/bin/emgauwa-controller"
|
2020-07-01 21:28:49 +00:00
|
|
|
|
|
|
|
install -Dm660 "controller.ini" "${pkgdir}/etc/emgauwa/controller.ini"
|
|
|
|
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"
|
|
|
|
|
|
|
|
install -Ddm750 "${pkgdir}/var/lib/emgauwa"
|
|
|
|
install -Ddm750 "${pkgdir}/var/lib/emgauwa/controller"
|
|
|
|
}
|