blob: 5e39730b29f54c98ff0d7aab359c210c8a6ecbd7 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: metamuffin <metamuffin@disroot.org>
pkgname=hurrycurry-server
pkgver=2.2.1
pkgrel=7
pkgdesc="A game about cooking (server)"
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://codeberg.org/hurrycurry/hurrycurry"
license=('AGPL3')
makedepends=('rustup' 'deno' 'graphviz' 'godot' 'esbuild')
source=("hurrycurry-$pkgver.tar.gz::https://codeberg.org/hurrycurry/hurrycurry/archive/v$pkgver.tar.gz"
"hurrycurry.service"
"hurrycurry-registry.service"
"hurrycurry.yaml"
"tmpfiles.conf"
"sysusers.conf")
sha256sums=('c33ac0383534d30c107438cc022ea1656c80fbbdeaa2398bbe3b9a363a9346dd'
'2e10c8882ef4847586f03ac5feb469294c1b2304928f8df41db12a1d84569eb7'
'dec75b020f3a0bfc5c22f0fa013fe03d06feab608f9d4a42fb46d05dbed56844'
'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
'47c6bd933fc96d08322d78a14c7932707b1dd1be2c1bb6eda2d212973f96aac9'
'bbb29eff6b62d4530b04c0a964a88229212fea165f97a1c4674c53fae9fb4fe4')
prepare() {
cd "hurrycurry"
rustup default nightly
cargo +nightly fetch --locked --target "$CHOST"
}
build() {
cd "hurrycurry"
cargo +nightly build --frozen --release --target "$CHOST" --bin hurrycurry-server
cargo +nightly build --frozen --release --target "$CHOST" --bin hurrycurry-replaytool
cargo +nightly build --frozen --release --target "$CHOST" --bin hurrycurry-registry
cargo +nightly build --frozen --release --target "$CHOST" --bin hurrycurry-discover
make -C data all
make -C test-client
make -C data recipes/default.svg
}
package() {
install -Dm755 hurrycurry/target/$CHOST/release/hurrycurry-server "$pkgdir/usr/bin/hurrycurry-server"
install -Dm755 hurrycurry/target/$CHOST/release/hurrycurry-replaytool "$pkgdir/usr/bin/hurrycurry-replaytool"
install -Dm755 hurrycurry/target/$CHOST/release/hurrycurry-registry "$pkgdir/usr/bin/hurrycurry-registry"
install -Dm755 hurrycurry/target/$CHOST/release/hurrycurry-discover "$pkgdir/usr/bin/hurrycurry-discover"
install -Dm644 hurrycurry.service "$pkgdir/usr/lib/systemd/system/hurrycurry.service"
install -Dm644 hurrycurry-registry.service "$pkgdir/usr/lib/systemd/system/hurrycurry-registry.service"
install -Dm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/hurrycurry.conf"
install -Dm644 tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/hurrycurry.conf"
install -Dm644 hurrycurry/COPYING "$pkgdir/usr/share/licenses/hurrycurry-server/COPYING"
install -Dm664 hurrycurry/test-client/main.js "$pkgdir/usr/share/hurrycurry/test-client/main.js"
install -Dm664 hurrycurry/test-client/index.html "$pkgdir/usr/share/hurrycurry/test-client/index.html"
install -dm755 "$pkgdir/usr/share/hurrycurry/test-client/locale"
install -Dm664 -t "$pkgdir/usr/share/hurrycurry/test-client/locale" hurrycurry/test-client/locale/*
install -Dm644 hurrycurry/data/index.yaml "$pkgdir/usr/share/hurrycurry/data/index.yaml"
install -Dm664 -t "$pkgdir/usr/share/hurrycurry/data/recipes" hurrycurry/data/recipes/*.yaml
install -Dm664 -t "$pkgdir/usr/share/hurrycurry/data/maps" hurrycurry/data/maps/*.yaml
install -Dm664 hurrycurry/data/book.json "$pkgdir/usr/share/hurrycurry/data/book.json"
install -Dm664 -t "$pkgdir/usr/share/doc/hurrycurry/recipes" hurrycurry/data/recipes/*.svg
}
|