summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorsmls2017-02-02 18:51:39 +0100
committersmls2017-02-02 18:51:39 +0100
commit80da0ce59f20cda9fe5c68e45b32ce054bf61c56 (patch)
treedcee9f8d114b589f4e01283159bd05f4d5880793 /PKGBUILD
parentf2d88befd5b8c89ae62f83a445a0a02971bbc3dd (diff)
downloadaur-frozensynapse-hib.tar.gz
rename from frozensynapse to frozensynapse-hib
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 11 insertions, 10 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 93aaa7ae86c..fc736efc1fe 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,8 @@
# Contributor: Gadget3000 <gadget3000 at msn dot com>
# Contributor: wido <widowild [ta] myopera [tod] com>
-pkgname=frozensynapse
+pkgname=frozensynapse-hib
+_installname=frozensynapse
pkgver=1.0.32+h20120614
_hibver=1339710386
pkgrel=1
@@ -22,9 +23,9 @@ options=('!upx')
PKGEXT='.pkg.tar'
DLAGENTS+=('hib::/usr/bin/echo "Could not find %u. Manually download it to \"$(pwd)\", or set up a hib:// DLAGENT in /etc/makepkg.conf."; exit 1')
-_archive="$pkgname-linux-32-$_hibver.run"
+_archive="$_installname-linux-32-$_hibver.run"
source=("hib://$_archive"
- "$pkgname.desktop")
+ "$_installname.desktop")
md5sums=('bcbfce04bd280b69bddea7a4bef0864a'
'e5480e851062946708572273c9545b9c')
@@ -33,23 +34,23 @@ package(){
# Extract game files
chmod +x $_archive
- ./$_archive --mode unattended --unattendedmodeui none --prefix "$pkgdir/opt/$pkgname"
+ ./$_archive --mode unattended --unattendedmodeui none --prefix "$pkgdir/opt/$_installname"
cd "$pkgdir"
# Remove unneeded files
- rm opt/$pkgname/{uninstall,*.desktop}
+ rm opt/$_installname/{uninstall,*.desktop}
# Fix permissions
- chmod 644 opt/$pkgname/cacert.pem
+ chmod 644 opt/$_installname/cacert.pem
# Install launch script
- echo -e "#!/bin/sh\ncd /opt/$pkgname && exec ./FrozenSynapse \$*" \
+ echo -e "#!/bin/sh\ncd /opt/$_installname && exec ./FrozenSynapse \$*" \
> "$srcdir/launcher.sh"
- install -Dm755 "$srcdir/launcher.sh" usr/bin/$pkgname
+ install -Dm755 "$srcdir/launcher.sh" usr/bin/$_installname
# Install desktop entry & icon
- install -Dm644 "$srcdir/$pkgname.desktop" usr/share/applications/$pkgname.desktop
- install -Dm644 opt/$pkgname/fs_icon.png usr/share/pixmaps/$pkgname.png
+ install -Dm644 "$srcdir/$_installname.desktop" usr/share/applications/$_installname.desktop
+ install -Dm644 opt/$_installname/fs_icon.png usr/share/pixmaps/$_installname.png
}