47 lines
1.8 KiB
Bash
47 lines
1.8 KiB
Bash
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
|
|
pkgname=emgauwa-controller
|
|
pkgver=0.2.2
|
|
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=("https://git.serguzim.me/emgauwa/controller/archive/v$pkgver.tar.gz"
|
|
"controller.ini"
|
|
"emgauwa-controller-testing.service"
|
|
"emgauwa-controller-testing.sysusers"
|
|
"emgauwa-controller-testing.tmpfiles")
|
|
sha256sums=('8a191242a329e0b559aac06584e8513254a065ae3780d59f62955bb52fec5d7c'
|
|
'e467db2a2b382f34c125d01c735eb4ea83b971eb0928ac2863d19b7c151301c0'
|
|
'8ece4b409d5550cdae23591217e440d8599ebf2175f2a91574c0b069314879a0'
|
|
'b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798'
|
|
'5a4ce46c1302546509c0024d4614b5b0d47dde02467b7bf52b28ef6c4ead91e7')
|
|
|
|
prepare() {
|
|
cd "$pkgname"
|
|
mkdir -p "build"
|
|
}
|
|
|
|
build() {
|
|
cd "$pkgname/build" || exit 1
|
|
cmake -DWIRING_PI_DEBUG=ON ..
|
|
make
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 "${pkgname}/build/controller" "${pkgdir}/usr/bin/emgauwa-controller"
|
|
|
|
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"
|
|
}
|