diff --git a/pkg/PKGBUILD b/pkg/PKGBUILD new file mode 100644 index 0000000..72a3dbb --- /dev/null +++ b/pkg/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Brandon +pkgname=strafe-client-git +pkgver=0.0.73.05156d1 +pkgrel=1 +pkgdesc="In development client for jumping on squares (and riding on triangles)" +arch=(x86_64) +url="https://git.itzana.me/StrafesNET/strafe-client" +license=('custom') +makedepends=(git rust) +source=(git+${url}.git) +md5sums=("SKIP") + +_strafe_client_app="src/strafe-client" +pkgver(){ + cd "../${_strafe_client_app}" + printf "0.0.%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} +build(){ + cd "../${_strafe_client_app}" + cargo build --release +} +package(){ + cd "../${_strafe_client_app}" + install -Dm 755 "target/release/strafe-client" "${pkgdir}/usr/bin/strafe-client" + install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + cd "pkg/" + install -Dm 644 "${pkgdir}/strafe-512.png" "${pkgdir}/usr/share/pixmaps/strafe.png" + for pngsize in 22 24 32 48 64 128 256 512; do + install -Dm 644 "strafe-$pngsize.png" "${pkgdir}/usr/share/icons/hicolor/${pngsize}x${pngsize}/apps/strafe.png" + done + install -Dm 644 "strafe-client.desktop" "${pkgdir}/usr/share/applications/strafe-client.desktop" +} \ No newline at end of file diff --git a/pkg/strafe-128.png b/pkg/strafe-128.png new file mode 100644 index 0000000..5b489c8 Binary files /dev/null and b/pkg/strafe-128.png differ diff --git a/pkg/strafe-22.png b/pkg/strafe-22.png new file mode 100644 index 0000000..e29aa6e Binary files /dev/null and b/pkg/strafe-22.png differ diff --git a/pkg/strafe-24.png b/pkg/strafe-24.png new file mode 100644 index 0000000..a1b077e Binary files /dev/null and b/pkg/strafe-24.png differ diff --git a/pkg/strafe-256.png b/pkg/strafe-256.png new file mode 100644 index 0000000..309bad6 Binary files /dev/null and b/pkg/strafe-256.png differ diff --git a/pkg/strafe-32.png b/pkg/strafe-32.png new file mode 100644 index 0000000..2190a05 Binary files /dev/null and b/pkg/strafe-32.png differ diff --git a/pkg/strafe-48.png b/pkg/strafe-48.png new file mode 100644 index 0000000..58b0346 Binary files /dev/null and b/pkg/strafe-48.png differ diff --git a/pkg/strafe-512.png b/pkg/strafe-512.png new file mode 100644 index 0000000..7105174 Binary files /dev/null and b/pkg/strafe-512.png differ diff --git a/pkg/strafe-64.png b/pkg/strafe-64.png new file mode 100644 index 0000000..a263ad9 Binary files /dev/null and b/pkg/strafe-64.png differ diff --git a/pkg/strafe-client.desktop b/pkg/strafe-client.desktop new file mode 100644 index 0000000..2470d55 --- /dev/null +++ b/pkg/strafe-client.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Version=0.2.0 +Type=Application +Name=Strafe Client +Comment=Client for jumping on squares (and riding on triangles) +Icon=strafe +Exec=/usr/bin/strafe-client +Categories=Games; \ No newline at end of file