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

48 lines
1.6 KiB
Text
Raw Normal View History

2020-07-01 21:28:49 +00:00
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
pkgname=emgauwa-core
pkgver=0.2.5
2020-07-17 21:40:58 +00:00
pkgrel=1
2020-07-01 21:28:49 +00:00
epoch=
pkgdesc=""
arch=('any')
url="https://git.serguzim.me/emgauwa/core"
license=('unknown')
groups=()
depends=('glibc' 'sqlite')
makedepends=('make' 'cmake' 'gcc' 'vim')
2020-07-01 21:40:40 +00:00
conflicts=('emgauwa-core-testing')
2020-07-01 21:28:49 +00:00
backup=('etc/emgauwa/core.ini')
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")
sha256sums=('deb59fe99b74355f5463f6e03e19d866ea02f2773861564a86f559db4868f9ca'
'71d8d0f9e2dba22a256be866cb2b3128115f1a188c18b46c55a3b8718c626133'
'696e4d020eeb50e900678b3e21c4c114830b23af95169e9a0f0c06d82d053a5c'
2020-07-01 21:28:49 +00:00
'b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798'
'76f7d12b56efbdb06eb14ac758da2daa4ca9f2c6449a0103db6aeab22ed93cd8')
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"
}