diff options
author | kleintux | 2021-09-16 22:32:31 +0200 |
---|---|---|
committer | kleintux | 2021-09-16 22:32:31 +0200 |
commit | abf12900c4f8f990423cb0461f44486d92dec87e (patch) | |
tree | ed32e2e4c14cd88bab7d0c0da2196aed23f6fa1a | |
download | aur-abf12900c4f8f990423cb0461f44486d92dec87e.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 45 | ||||
-rw-r--r-- | fishfight.sh | 3 |
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d92f7661d370 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = fishfight + pkgdesc = Fish Fight is a tactical 2D shooter. Made with Rust-lang and Macroquad + pkgver = 0.1 + pkgrel = 1 + url = https://fishfight.org/ + arch = any + license = MIT APACHE + makedepends = cargo + provides = fishfight + source = fishfight-0.1.tar.gz::https://github.com/fishfight/FishFight/archive/refs/tags/v0.1.tar.gz + source = fishfight.sh + sha512sums = 873833892bd83577488c60402042ea5c6c424b36f08a354f49bc7b34236566e3e462771a79b1635afd574c4266861451e8f418461e5d8d8e5e359edad1a0e7c2 + sha512sums = 47ae00125796e46500cdf45cf8aae88dd2770f98d960f59c07f2df3fc661cbb8138dff34cb84c7339520a8aae3ee5a705a4ebee596252247c13c451805008577 + +pkgname = fishfight diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a8af375a4f5e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: kleintux <reg-archlinux AT klein DOT tuxli DOT ch> +_pkgname=FishFight +pkgname=fishfight +pkgver=0.1 +pkgrel=1 +pkgdesc="Fish Fight is a tactical 2D shooter. Made with Rust-lang and Macroquad" +arch=('any') +url="https://fishfight.org/" +license=('MIT APACHE') +makedepends=('cargo') +provides=(${pkgname}) +source=( + "${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}/${_pkgname}/archive/refs/tags/v${pkgver}.tar.gz" + "${pkgname}.sh" +) +sha512sums=( + '873833892bd83577488c60402042ea5c6c424b36f08a354f49bc7b34236566e3e462771a79b1635afd574c4266861451e8f418461e5d8d8e5e359edad1a0e7c2' + '47ae00125796e46500cdf45cf8aae88dd2770f98d960f59c07f2df3fc661cbb8138dff34cb84c7339520a8aae3ee5a705a4ebee596252247c13c451805008577' +) +prepare() { + cd "${srcdir}"/"${_pkgname}-${pkgver}" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "${srcdir}"/"${_pkgname}-${pkgver}" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --all-features +} + +check() { + cd "${srcdir}"/"${_pkgname}-${pkgver}" + export RUSTUP_TOOLCHAIN=stable + cargo test --frozen --all-features +} + +package() { + cd "${srcdir}"/"${_pkgname}-${pkgver}" + install -Dm0755 "target/release/fishgame" "${pkgdir}/opt/${pkgname}/${pkgname}" + cp -r "assets" "${pkgdir}/opt/${pkgname}/" + #install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + find ${pkgdir}/opt/${pkgname}/assets/sounds/ -type f -exec chmod 444 {} \; + install -Dm0755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}" +} diff --git a/fishfight.sh b/fishfight.sh new file mode 100644 index 000000000000..96797fa9a4b5 --- /dev/null +++ b/fishfight.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cd /opt/fishfight +./fishfight |