diff options
author | kleintux | 2022-08-24 08:28:29 +0200 |
---|---|---|
committer | kleintux | 2022-08-24 08:28:29 +0200 |
commit | 789db994069b0fb5d0e78ef0b496f59a18b3cd2e (patch) | |
tree | 295b305685d8182b89a80e66fc98bfe33ee4b101 | |
parent | 1999cc9a1c6cad7a5781bdf025b177eb9cec0c8b (diff) | |
download | aur-gigalomania.tar.gz |
update to 1.0.1 and refactoreed PKGBUILD
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 13 insertions, 23 deletions
@@ -1,8 +1,6 @@ -# Generated by mksrcinfo v8 -# Sat Sep 2 21:59:43 UTC 2017 pkgbase = gigalomania pkgdesc = 2D real time strategy game that is a clone of Mega-Lo-Mania - pkgver = 0.28 + pkgver = 1.0.1 pkgrel = 1 url = http://homepage.ntlworld.com/mark.harman/comp_gigalomania.html arch = i686 @@ -11,8 +9,7 @@ pkgbase = gigalomania depends = sdl2 depends = sdl2_image depends = sdl2_mixer - source = http://launchpad.net/gigalomania/trunk/0.28/+download/gigalomaniasrc.zip - sha512sums = e89a3aab737633e03be6fd82d36b992dbe00b0ecb5cd8b8c3f6ee9196fbcdf3dec0d181af29dcaeda2180e9037c14f770cb7cfb75f09c5b0d78d259532660d41 + source = gigalomania-1.0.1::http://launchpad.net/gigalomania/trunk/1.0.1/+download/gigalomaniasrc.zip + sha512sums = 255eb3d5ce566fbff42c1075c850cd2c7e2490f91bcf97954aa36ad9fb8bb787c1e817e682b0954e53c758c79ec76c431bedbf37b8197764ee40b48d09e75bcc pkgname = gigalomania - @@ -1,15 +1,15 @@ # Maintainer: Sven Schneider <archlinux.sandmann@googlemail.com> pkgname=gigalomania -pkgver=0.28 +pkgver=1.0.1 pkgrel=1 pkgdesc="2D real time strategy game that is a clone of Mega-Lo-Mania" arch=('i686' 'x86_64') url="http://homepage.ntlworld.com/mark.harman/comp_gigalomania.html" license=('GPL') depends=('sdl2' 'sdl2_image' 'sdl2_mixer') -source=(http://launchpad.net/gigalomania/trunk/${pkgver}/+download/gigalomaniasrc.zip) -sha512sums=('e89a3aab737633e03be6fd82d36b992dbe00b0ecb5cd8b8c3f6ee9196fbcdf3dec0d181af29dcaeda2180e9037c14f770cb7cfb75f09c5b0d78d259532660d41') +source=(${pkgname}-${pkgver}::http://launchpad.net/gigalomania/trunk/${pkgver}/+download/gigalomaniasrc.zip) +sha512sums=('255eb3d5ce566fbff42c1075c850cd2c7e2490f91bcf97954aa36ad9fb8bb787c1e817e682b0954e53c758c79ec76c431bedbf37b8197764ee40b48d09e75bcc') build() { cd ${srcdir}/${pkgname}src @@ -23,25 +23,18 @@ build() { package() { cd "${srcdir}/${pkgname}src" + mkdir -p ${pkgdir}/usr/bin/ - # install the executable - install -Dm 755 gigalomania "${pkgdir}/usr/bin/gigalomania" + make install DESTDIR="${pkgdir}" - # create the mods and maps directory - install -dm755 "${pkgdir}/usr/share/gigalomania/gfx" - install -dm755 "${pkgdir}/usr/share/gigalomania/islands" - install -dm755 "${pkgdir}/usr/share/gigalomania/sound" - - # install the data files - install -Dm644 gfx/* "${pkgdir}/usr/share/gigalomania/gfx/" - install -Dm644 islands/* "${pkgdir}/usr/share/gigalomania/islands/" - install -Dm644 sound/* "${pkgdir}/usr/share/gigalomania/sound/" - - # install .desktop - install -Dm 644 gigalomania.desktop "${pkgdir}/usr/share/applications/gigalomania.desktop" + #chgrp users ${pkgdir}/opt/gigalomania/{gfx,islands,music,sound} # install icon install -dm755 "${pkgdir}/usr/share/icons/hicolor/64x64/apps" install -Dm 644 gigalomania64.png "${pkgdir}/usr/share/icons/hicolor/64x64/apps/gigalomania64.png" + install -Dm 644 gigalomania64.png "${pkgdir}/usr/share/pixelmaps/gigalomania64.png" + + echo -e "#!/bin/sh\ncd /opt/${pkgname}\n./${pkgname}" > "${pkgdir}/usr/bin/${pkgname}" + chmod +x "${pkgdir}/usr/bin/${pkgname}" } |