[arch-commits] Commit in (6 files)
Orhun Parmaksiz
orhun at gemini.archlinux.org
Sat Dec 18 19:50:47 UTC 2021
Date: Saturday, December 18, 2021 @ 19:50:47
Author: orhun
Revision: 1077629
addpkg: fishfight 0.3-2
Added:
fishfight/
fishfight/repos/
fishfight/trunk/
fishfight/trunk/PKGBUILD
fishfight/trunk/fishfight.sh
fishfight/trunk/trunk/
--------------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
fishfight.sh | 3 +++
2 files changed, 53 insertions(+)
Added: fishfight/trunk/PKGBUILD
===================================================================
--- fishfight/trunk/PKGBUILD (rev 0)
+++ fishfight/trunk/PKGBUILD 2021-12-18 19:50:47 UTC (rev 1077629)
@@ -0,0 +1,50 @@
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+# Contributor: kleintux <reg-archlinux AT klein DOT tuxli DOT ch>
+
+_pkgname=FishFight
+pkgname=fishfight
+pkgver=0.3
+pkgrel=2
+pkgdesc="A tactical 2D shooter game"
+arch=('x86_64')
+url="https://fishfight.org/"
+license=('MIT' 'Apache')
+depends=('pkg-config' 'libx11' 'libxi' 'mesa-libgl' 'alsa-lib')
+makedepends=('rust' 'cmake')
+source=(
+ "$pkgname-$pkgver.tar.gz::https://github.com/fishfight/FishFight/archive/v$pkgver.tar.gz"
+ "$pkgname.sh"
+)
+sha512sums=('83553106b481d4d738f57651d1f1b58892d6f91465862413a5db5adb25a00fef2eb884948a6f859daa6501bb015138c923348795d0d4419b2aa5cdf4c7fb84f9'
+ '73fc2765f9820f64fbce0b16d4d4d9a40563d4070a39815c6f4cdcefaa186c1346094ffcb972287fba487bc3f5dcaa29df38a150a9ad91e4022f252f2824f4fd')
+
+prepare() {
+ cd "$_pkgname-$pkgver"
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+ cd "$_pkgname-$pkgver"
+ cargo build --frozen --release
+}
+
+check() {
+ cd "$_pkgname-$pkgver"
+ cargo test --frozen
+}
+
+package() {
+ cd "$_pkgname-$pkgver"
+ install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/lib"
+ install -Dm 755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
+
+ mkdir -p "$pkgdir/opt/$pkgname"
+ cp -r "assets" "$pkgdir/opt/$pkgname/"
+ find "$pkgdir/opt/$pkgname/assets/sounds/" -type f -exec chmod 444 {} \;
+
+ install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+ install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+ install -Dm 644 docs/LICENSE-MIT -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim: ts=2 sw=2 et:
Added: fishfight/trunk/fishfight.sh
===================================================================
--- fishfight/trunk/fishfight.sh (rev 0)
+++ fishfight/trunk/fishfight.sh 2021-12-18 19:50:47 UTC (rev 1077629)
@@ -0,0 +1,3 @@
+#!/usr/bin/env sh
+
+FISHFIGHT_ASSETS=/opt/fishfight/assets/ exec /usr/lib/fishfight "$@"
More information about the arch-commits
mailing list