This repository has been archived on 2024-05-06. You can view files and clone it, but cannot push or open issues or pull requests.
package/controller-testing/PKGBUILD

48 lines
1.8 KiB
Text
Raw Normal View History

# Maintainer: Tobias Reisinger <tobias@msrg.cc>
pkgname=emgauwa-controller-testing
2020-07-17 21:40:58 +00:00
pkgver=0.2.6
2020-06-30 22:00:33 +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')
2020-06-30 22:47:21 +00:00
source=("https://git.serguzim.me/emgauwa/controller/archive/testing-v$pkgver.tar.gz"
"controller.ini"
"emgauwa-controller-testing.service"
"emgauwa-controller-testing.sysusers"
"emgauwa-controller-testing.tmpfiles")
2020-07-17 21:42:20 +00:00
sha256sums=('ed6ad99e059937272f5e26b844c50dcf211d69b18596c094d092f67524b8fe35'
2020-07-14 19:47:29 +00:00
'1dc741c8d6b70a7adf8812bc4854bd9599f54b614bbfff8c24f2eb21a4b10ae7'
2020-06-30 22:00:33 +00:00
'0bbc44d680be2011800c553ae863663148be0820f08349993578c88e9a23b143'
'b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798'
'5a4ce46c1302546509c0024d4614b5b0d47dde02467b7bf52b28ef6c4ead91e7')
prepare() {
2020-07-01 21:39:09 +00:00
cd "controller"
mkdir -p "build"
}
build() {
2020-07-01 21:39:09 +00:00
cd "controller/build" || exit 1
cmake -DWIRING_PI_DEBUG=ON ..
make
}
package() {
2020-07-01 21:39:09 +00:00
install -Dm755 "controller/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"
}