2020-06-15 21:53:19 +00:00
|
|
|
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
|
|
|
|
pkgname=emgauwa-controller-testing
|
2020-08-25 09:23:55 +00:00
|
|
|
pkgver=0.3.3
|
2020-08-24 22:05:22 +00:00
|
|
|
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')
|
|
|
|
backup=('etc/emgauwa/controller.ini')
|
2020-06-30 22:47:21 +00:00
|
|
|
source=("https://git.serguzim.me/emgauwa/controller/archive/testing-v$pkgver.tar.gz"
|
2020-06-15 21:53:19 +00:00
|
|
|
"controller.ini"
|
|
|
|
"emgauwa-controller-testing.service"
|
|
|
|
"emgauwa-controller-testing.sysusers"
|
|
|
|
"emgauwa-controller-testing.tmpfiles")
|
2020-08-25 09:28:00 +00:00
|
|
|
sha256sums=('cac1922b43f918bbbc45cc99bbbcfe2fc846d72a7a895734fefb0079b290e8b9'
|
2020-08-24 22:05:22 +00:00
|
|
|
'5bfbe580ef1a373e3c025f28f3de591ba7ce57c4aba20bd1cc62555043d7bd13'
|
2020-06-30 22:00:33 +00:00
|
|
|
'0bbc44d680be2011800c553ae863663148be0820f08349993578c88e9a23b143'
|
|
|
|
'b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798'
|
2020-07-26 19:09:55 +00:00
|
|
|
'e62f47b41f0c4f116007ca0e05e0a50b45446763ccfa91b946b9d451c83ff5b4')
|
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-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
|
|
|
}
|