# Maintainer: xengineering pkgname=ceres pkgver=0.3.0 pkgrel=1 pkgdesc="Recipe server for your favorite dishes" arch=('x86_64' 'aarch64') url="https://xengineering.eu/git/ceres" license=('AGPL') makedepends=('coreutils' 'git' 'make' 'go') backup=('etc/ceres/config.json') source=("https://cgit.xengineering.eu/ceres/snapshot/ceres-${pkgver}.tar.zst" 'ceres.service' 'sysuser.conf' 'ceres.tmpfile.d') sha256sums=('e58ba399ecbe465cbcb9f0ce4fc44affed681df7aaf982c9a39a7a9dc6e9a826' 'da4b6201e9bcf2cc3ae94b274338b58abc5368d77e0df1ece578644a415d8ace' 'a8c7c3d6af65bd7255b0f693430c6ba53d646123feebec9a1e37f8723c21942b' 'f2cc4598aebbb96b7d190b3d69fca94b09d1ebc5f0d858fb01ab69d0ea6b071e') build() { cd "$pkgname-$pkgver" make } package() { cd "$pkgname-$pkgver" make DESTDIR="$pkgdir" install rm -rf "${pkgdir}/var" install -Dm644 "${srcdir}"/ceres.service "${pkgdir}"/usr/lib/systemd/system/ceres.service install -Dm644 "${srcdir}"/sysuser.conf "${pkgdir}"/usr/lib/sysusers.d/ceres.conf install -Dm644 "${srcdir}"/ceres.tmpfile.d "${pkgdir}"/usr/lib/tmpfiles.d/ceres.conf }