blob: 32612b62363b6e82a1b8155d27f9ee9dad99bab3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: xengineering <me@xengineering.eu>
pkgname=ceres
pkgver=0.2.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-0.2.0.tar.zst'
'https://github.com/kevquirk/simple.css/archive/refs/tags/v2.1.1.tar.gz'
'0001-Fix-style.css-symlink-for-Arch-Linux-build.patch'
'ceres.service'
'sysuser.conf'
'ceres.tmpfile.d')
sha256sums=('e3dc85ecc7f8c0d6be6c740f29ae56394cfaa8c883c6f583110b0b790a53e01d'
'0759002f5905a3955fbec40fb71e04ca45e015791e3f7b5cd1ad4771c4c4fb22'
'2e2441bbc13bace5c5cc9be8efbdab98e3db13c831967ed2676aff56beca46ea'
'da4b6201e9bcf2cc3ae94b274338b58abc5368d77e0df1ece578644a415d8ace'
'a8c7c3d6af65bd7255b0f693430c6ba53d646123feebec9a1e37f8723c21942b'
'f2cc4598aebbb96b7d190b3d69fca94b09d1ebc5f0d858fb01ab69d0ea6b071e')
prepare() {
cd $pkgbase-$pkgver/
patch -Np1 < ../0001-Fix-style.css-symlink-for-Arch-Linux-build.patch
}
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
}
|