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
2020-07-01 22:21:36 +00:00
pkgver=0.2.2
2020-07-01 22:51:26 +00:00
pkgrel=3
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')
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")
2020-07-01 22:21:36 +00:00
sha256sums=('6e983e765f1f4bd5388f77fa0cbc9a1e8f92f9834a4c63ea0c0bab4c96be4e2f'
2020-07-01 22:51:26 +00:00
'8ea2a0d7e6da31ed1aa8065111eb4b5b58ae1c544339f6a4d82bb7358e8e0707'
2020-07-01 21:31:51 +00:00
'559c675302f626dfded86660866554fb78f3fcbae51e5879eee65c9384a06d52'
2020-07-01 21:28:49 +00:00
'b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798'
'0531f10303410afd7e53099e66b124ef2fd14afec9d33c4a0146793375acb6c2')
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"
}