forked from StrafesNET/strafe-client
32 lines
1.1 KiB
Bash
32 lines
1.1 KiB
Bash
# 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"
|
|
} |