Linux application support (.desktop) and AUR pkgbuild script #1
32
pkg/PKGBUILD
Normal file
@ -0,0 +1,32 @@
|
||||
# Maintainer: Brandon <brandon@rhpidfyre.io>
|
||||
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"
|
||||
}
|
BIN
pkg/strafe-128.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
pkg/strafe-22.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
pkg/strafe-24.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
pkg/strafe-256.png
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
pkg/strafe-32.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
pkg/strafe-48.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
pkg/strafe-512.png
Normal file
After Width: | Height: | Size: 205 KiB |
BIN
pkg/strafe-64.png
Normal file
After Width: | Height: | Size: 8.4 KiB |
8
pkg/strafe-client.desktop
Normal file
@ -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;
|