blob: fe1fe17b071d355ed0a770fd8897ff9117e5434d (
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
|
# Maintainer: orhun <orhunparmaksiz@gmail.com>
# https://github.com/orhun/pkgbuilds
pkgname=jumpy-git
pkgver=0.12.1.r0.gd1763516a
pkgrel=1
pkgdesc="Tactical 2D shooter in fishy pixels style"
arch=('x86_64')
url="https://github.com/fishfolks/jumpy"
license=('MIT' 'Apache-2.0')
depends=('pkg-config' 'mesa-libgl' 'alsa-lib' 'systemd-libs' 'libudev.so')
makedepends=('cargo' 'git' 'systemd')
conflicts=("${pkgname%-git}")
provides=("${pkgname%-git}")
replaces=("fishfight-git")
source=("git+${url}"
"${pkgname%-git}.sh")
sha256sums=('SKIP'
'53545f2f80d897f4560489af887d8c7d287ae0a9a06f0cda4bd35a352b9cc000')
options=('!lto')
pkgver() {
cd "${pkgname%-git}"
git describe --long --tags --match "v*" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${pkgname%-git}"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "${pkgname%-git}"
cargo build --release --frozen
}
check() {
cd "${pkgname%-git}"
cargo test --frozen
}
package() {
cd "${pkgname%-git}"
mkdir -p "$pkgdir/opt/${pkgname%-git}"
cp -r "assets" "$pkgdir/opt/${pkgname%-git}/"
cp -r "packs" "$pkgdir/opt/${pkgname%-git}/"
find "$pkgdir/opt/${pkgname%-git}/assets/music/" -type f -exec chmod 444 {} \;
find "$pkgdir/opt/${pkgname%-git}/assets/player/sounds/" -type f -exec chmod 444 {} \;
install -Dm 755 "target/release/${pkgname%-git}" -t "$pkgdir/usr/lib"
install -Dm 755 "$srcdir/${pkgname%-git}.sh" "$pkgdir/usr/bin/${pkgname%-git}"
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm 644 licenses/LICENSE-MIT -t "$pkgdir/usr/share/licenses/$pkgname"
}
|