M main/little-town/APKBUILD => main/little-town/APKBUILD +15 -5
@@ 1,7 1,8 @@
# Maintainer: Jakob Meier <comcloudway@ccw.icu>
pkgname=little-town
-pkgver=0.2.3-r4
-pkgrel=0
+pkgver=0.2.3
+_pkgver=0.2.3-r4
+pkgrel=1
pkgdesc="Design your own isometric world"
url="https://codeberg.org/comcloudway/little_town"
arch="all"
@@ 9,15 10,16 @@ license="AGPL-3.0"
makedepends="cargo alsa-lib alsa-lib-dev protoc wget unzip ffmpeg bash"
builddir="$srcdir/little_town"
source="
- little-town-$pkgver.tar.gz::https://codeberg.org/comcloudway/little_town/archive/v$pkgver.tar.gz
+ little-town-$pkgver.tar.gz::https://codeberg.org/comcloudway/little_town/archive/v$_pkgver.tar.gz
fix-musl.patch
+ LittleTown.desktop
"
options="net"
prepare() {
default_prepare
- ./fetch-assets.sh
+ ./fetch-assets.sh
cargo fetch --target="$CTARGET"
cargo update -p libc
@@ 34,9 36,17 @@ check() {
package() {
cargo install --frozen --offline --path . --root="$pkgdir/usr"
rm "$pkgdir"/usr/.crates*
+
+ # install icon
+ install -d $pkgdir/usr/share/$pkgname
+ install -Dm644 res/icon.png $pkgdir/usr/share/$pkgname/icon.png
+
+ # install .desktop file
+ install -Dm644 $srcdir/LittleTown.desktop $pkgdir/usr/share/applications/LittleTown.desktop
}
sha512sums="
-aba2d5d73038d75ce28ff90edf329ec5f702172eac50e993e83f8a6e0c4a334feeb8cb3fcf7baeb5f16d0238b2ee9b8c2b9e075096a17fbb00dfbf35f3a9978b little-town-0.2.3-r4.tar.gz
+aba2d5d73038d75ce28ff90edf329ec5f702172eac50e993e83f8a6e0c4a334feeb8cb3fcf7baeb5f16d0238b2ee9b8c2b9e075096a17fbb00dfbf35f3a9978b little-town-0.2.3.tar.gz
8eaa642405335205e2758f99a35eaa94ca01ccf6ad4508119fbe14c934b51cd781f57bb39450898f39ca59f04f3e985413914ee21d011ec8ce622d6802eecbe1 fix-musl.patch
+1c52648f2287f2b5a715ef90513d576ac75d9db0becc5a936e9e50083c5807b02fc982fa7f1027b7973e9744b605430f2e9baab4da7cad4bf4092799a29c8894 LittleTown.desktop
"
A main/little-town/LittleTown.desktop => main/little-town/LittleTown.desktop +8 -0
@@ 0,0 1,8 @@
+[Desktop Entry]
+Version=0.2.3
+Type=Application
+Name=LittleTown
+Exec=little_town
+Comment=Design your own isometric world
+Icon=/usr/share/little-town/icon.png
+Categories=Games