2020-06-15 16:18:52 +00:00
|
|
|
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
|
2020-06-15 20:47:45 +00:00
|
|
|
pkgname=emgauwa-core-testing
|
2020-08-14 22:33:00 +00:00
|
|
|
pkgver=0.2.10
|
2020-07-01 22:46:16 +00:00
|
|
|
pkgrel=1
|
2020-06-15 16:18:52 +00:00
|
|
|
epoch=
|
2020-06-15 20:47:45 +00:00
|
|
|
pkgdesc=""
|
2020-06-15 16:18:52 +00:00
|
|
|
arch=('any')
|
2020-06-15 20:47:45 +00:00
|
|
|
url="https://git.serguzim.me/emgauwa/core"
|
2020-06-15 16:18:52 +00:00
|
|
|
license=('unknown')
|
|
|
|
groups=()
|
|
|
|
depends=('glibc' 'sqlite')
|
2020-07-16 22:45:35 +00:00
|
|
|
makedepends=('make' 'cmake' 'gcc' 'vim')
|
2020-06-15 20:47:45 +00:00
|
|
|
conflicts=('emgauwa-core')
|
2020-06-15 16:18:52 +00:00
|
|
|
backup=('etc/emgauwa/core.ini')
|
2020-06-30 22:47:21 +00:00
|
|
|
source=("https://git.serguzim.me/emgauwa/core/archive/testing-v$pkgver.tar.gz"
|
2020-06-15 20:47:45 +00:00
|
|
|
"core.ini"
|
|
|
|
"emgauwa-core-testing.service"
|
|
|
|
"emgauwa-core-testing.sysusers"
|
|
|
|
"emgauwa-core-testing.tmpfiles")
|
2020-08-14 22:33:00 +00:00
|
|
|
sha256sums=('9b0e522e386cee9984049e72f837feba32dd44a0f2011401556c0123f02b5c0e'
|
2020-07-26 19:09:55 +00:00
|
|
|
'210c8a05bae65e5f19c0c168b0f8c63d064706a9e7885a22a57ca7b04ea4e00f'
|
2020-06-30 22:47:21 +00:00
|
|
|
'c781f4d50da8e158551a47a8549981dad05faaf2d632c4fde8b36b48474ab0ec'
|
|
|
|
'b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798'
|
2020-07-26 19:09:55 +00:00
|
|
|
'76f7d12b56efbdb06eb14ac758da2daa4ca9f2c6449a0103db6aeab22ed93cd8')
|
2020-06-15 16:18:52 +00:00
|
|
|
|
|
|
|
prepare() {
|
2020-07-01 21:39:09 +00:00
|
|
|
cd "core"
|
2020-06-15 20:47:45 +00:00
|
|
|
mkdir -p "build"
|
2020-06-15 16:18:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2020-07-01 21:39:09 +00:00
|
|
|
cd "core/build" || exit 1
|
2020-06-15 20:47:45 +00:00
|
|
|
cmake ..
|
|
|
|
make
|
2020-06-15 16:18:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-07-01 21:39:09 +00:00
|
|
|
install -Dm755 "core/build/core" "${pkgdir}/usr/bin/emgauwa-core"
|
2020-06-15 20:47:45 +00:00
|
|
|
|
2020-06-15 22:06:45 +00:00
|
|
|
install -Dm600 "core.ini" "${pkgdir}/etc/emgauwa/core.ini"
|
2020-06-15 20:47:45 +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/core"
|
2020-06-15 16:18:52 +00:00
|
|
|
}
|