2020-06-15 21:53:19 +00:00
|
|
|
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
|
|
|
|
pkgname=emgauwa-controller-testing
|
2020-11-22 00:58:29 +00:00
|
|
|
pkgver=0.4.0
|
|
|
|
pkgrel=1
|
2020-06-15 21:53:19 +00:00
|
|
|
epoch=
|
|
|
|
pkgdesc=""
|
2020-08-17 10:41:26 +00:00
|
|
|
arch=('x86_64' 'armv6h' 'armv7h' 'aarch64')
|
2020-06-15 21:53:19 +00:00
|
|
|
url="https://git.serguzim.me/emgauwa/controller"
|
|
|
|
license=('unknown')
|
|
|
|
groups=()
|
|
|
|
depends=('glibc' 'lmdb')
|
2020-08-18 22:01:21 +00:00
|
|
|
depends_armv6h=('wiringpi')
|
|
|
|
depends_armv7h=('wiringpi')
|
2020-06-15 21:53:19 +00:00
|
|
|
makedepends=('make' 'cmake' 'gcc')
|
|
|
|
conflicts=('emgauwa-controller')
|
2020-11-22 00:58:29 +00:00
|
|
|
backup=('etc/emgauwa/controller.conf'
|
|
|
|
'etc/emgauwa/controller2.conf')
|
2020-06-30 22:47:21 +00:00
|
|
|
source=("https://git.serguzim.me/emgauwa/controller/archive/testing-v$pkgver.tar.gz"
|
2020-11-22 00:58:29 +00:00
|
|
|
"controller.conf"
|
|
|
|
"controller2.conf"
|
2020-06-15 21:53:19 +00:00
|
|
|
"emgauwa-controller-testing.service"
|
2020-08-27 19:35:26 +00:00
|
|
|
"emgauwa-controller-testing2.service"
|
2020-06-15 21:53:19 +00:00
|
|
|
"emgauwa-controller-testing.sysusers"
|
|
|
|
"emgauwa-controller-testing.tmpfiles")
|
2020-11-22 00:58:29 +00:00
|
|
|
sha256sums=('9bc85905e83ad31cc8b8f72245c8e3470fef4309b4dc47ffe4588211e306c3f3'
|
|
|
|
'48463574063a4224cc1aaeb4725deaa12789fe1797b7647fd57949bf8b3e3ef0'
|
|
|
|
'4030e025022e94b328ab38fbf43c7f88b87376cb45bd6f32de14333ff27bb676'
|
|
|
|
'0b61a8de493e1aef4e00575710b5874f1e8b07c919d298bb0474355236fb76c7'
|
|
|
|
'c539ba0bd5b51f1896e2215d205a75ca31f50ecd636ee77c8671c4f19d319897'
|
2020-06-30 22:00:33 +00:00
|
|
|
'b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798'
|
2020-08-27 19:35:26 +00:00
|
|
|
'81f3872318a669e21a8a7b31c97fa3e14dc10f8aed1df74fb983b417ba74be89')
|
2020-06-25 23:47:38 +00:00
|
|
|
|
2020-06-15 21:53:19 +00:00
|
|
|
prepare() {
|
2020-07-01 21:39:09 +00:00
|
|
|
cd "controller"
|
2020-06-15 21:53:19 +00:00
|
|
|
mkdir -p "build"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2020-07-01 21:39:09 +00:00
|
|
|
cd "controller/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() {
|
2020-07-01 21:39:09 +00:00
|
|
|
install -Dm755 "controller/build/controller" "${pkgdir}/usr/bin/emgauwa-controller"
|
2020-06-15 21:53:19 +00:00
|
|
|
|
2020-11-22 00:58:29 +00:00
|
|
|
install -Dm660 "controller.conf" "${pkgdir}/etc/emgauwa/controller.conf"
|
|
|
|
install -Dm660 "controller2.conf" "${pkgdir}/etc/emgauwa/controller2.conf"
|
2020-06-15 21:53:19 +00:00
|
|
|
install -Dm644 "${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
|
2020-08-27 19:35:26 +00:00
|
|
|
install -Dm644 "${pkgname}2.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}2.service"
|
2020-06-15 21:53:19 +00:00
|
|
|
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
|
|
|
}
|