2020-07-01 21:28:49 +00:00
|
|
|
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
|
|
|
|
pkgname=emgauwa-core
|
2020-08-28 21:29:46 +00:00
|
|
|
pkgver=0.3.4
|
2023-06-18 12:40:07 +00:00
|
|
|
pkgrel=2
|
2020-07-01 21:28:49 +00:00
|
|
|
epoch=
|
2023-02-02 00:53:23 +00:00
|
|
|
pkgdesc='Emgauwa is a tool to schedule and manage relays.'
|
2023-02-02 02:15:24 +00:00
|
|
|
arch=('amd64' 'armhf' 'armel' 'arm64')
|
2020-07-01 21:28:49 +00:00
|
|
|
url="https://git.serguzim.me/emgauwa/core"
|
|
|
|
license=('unknown')
|
|
|
|
groups=()
|
2023-02-02 00:53:23 +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-core-testing')
|
2023-02-02 00:53:23 +00:00
|
|
|
backup=('/etc/emgauwa/core.ini')
|
2020-07-01 21:28:49 +00:00
|
|
|
source=("https://git.serguzim.me/emgauwa/core/archive/v$pkgver.tar.gz"
|
|
|
|
"core.ini"
|
2020-07-01 21:40:40 +00:00
|
|
|
"emgauwa-core.service"
|
|
|
|
"emgauwa-core.sysusers"
|
|
|
|
"emgauwa-core.tmpfiles")
|
2020-08-28 21:29:46 +00:00
|
|
|
sha256sums=('6c25cb1695b3a82253735b767a4747597135c7a39adc976e02cb4a26f42183dd'
|
2023-06-18 12:48:47 +00:00
|
|
|
'b2899a4ab931a01a41eb89fffce463f57a5bc3db2b023cf3ae03a589fbfa685b'
|
2020-08-14 22:33:00 +00:00
|
|
|
'559c675302f626dfded86660866554fb78f3fcbae51e5879eee65c9384a06d52'
|
2020-07-01 21:28:49 +00:00
|
|
|
'b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798'
|
2023-06-18 12:45:11 +00:00
|
|
|
'd63d248a08fcb7176b58d9fd9b8c1a97051337f6c07ee3e46e6a251d73c9120c')
|
2020-07-01 21:28:49 +00:00
|
|
|
|
|
|
|
prepare() {
|
2020-07-01 21:39:09 +00:00
|
|
|
cd "core"
|
2020-07-01 21:28:49 +00:00
|
|
|
mkdir -p "build"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2020-07-01 21:39:09 +00:00
|
|
|
cd "core/build" || exit 1
|
2020-07-01 21:28:49 +00:00
|
|
|
cmake ..
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-07-01 21:39:09 +00:00
|
|
|
install -Dm755 "core/build/core" "${pkgdir}/usr/bin/emgauwa-core"
|
2020-07-01 21:28:49 +00:00
|
|
|
|
|
|
|
install -Dm600 "core.ini" "${pkgdir}/etc/emgauwa/core.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/core"
|
|
|
|
}
|