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/PKGBUILD

49 lines
1.9 KiB
Text
Raw Normal View History

2020-07-01 21:28:49 +00:00
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
pkgname=emgauwa-controller
2023-08-28 17:30:37 +00:00
pkgver=0.3.8
2023-06-19 00:49:43 +00:00
pkgrel=1
2020-07-01 21:28:49 +00:00
epoch=
2023-05-26 22:57:45 +00:00
pkgdesc='Emgauwa is a tool to schedule and manage relays.'
2023-02-14 15:23:00 +00:00
arch=('amd64' 'armhf' 'armel' 'arm64')
2020-07-01 21:28:49 +00:00
url="https://git.serguzim.me/emgauwa/controller"
license=('unknown')
groups=()
2023-05-26 22:57:45 +00:00
depends=('libsqlite3-0' 'uuid')
makedepends=('make' 'cmake' 'gcc' 'xxd' 'libsqlite3-dev' 'uuid-dev')
2020-07-01 21:40:40 +00:00
conflicts=('emgauwa-controller-testing')
2023-02-14 15:23:00 +00:00
backup=('/etc/emgauwa/controller.ini')
2020-07-01 21:28:49 +00:00
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")
2023-08-28 17:30:37 +00:00
sha256sums=('10b46d703ca7f8c3efa656e7a719f8fa887d55468e1d455e9b690971534e6a95'
2023-06-18 12:48:47 +00:00
'ac48157e8953a7c1c865177144633db1bbfdfdefbb11da44cb416937c0580350'
2020-07-01 21:31:51 +00:00
'8ece4b409d5550cdae23591217e440d8599ebf2175f2a91574c0b069314879a0'
2020-07-01 21:28:49 +00:00
'b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798'
2023-06-18 12:45:11 +00:00
'2e2b1230747af920fdfdb554a1c9e00bbe6402cb8a3e5d857f696e63f00a688b')
2020-07-01 21:28:49 +00:00
prepare() {
2023-05-26 22:57:45 +00:00
cd "./controller"
rm -rf "./build"
mkdir -p "./build"
2020-07-01 21:28:49 +00:00
}
build() {
2023-05-26 22:57:45 +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"
}