Last active
March 4, 2017 22:28
-
-
Save dnlbauer/4a1822bfb32aacef4f622eeda6b4299d to your computer and use it in GitHub Desktop.
PKGBUILD for Battlescribe. Creates executeables for BattlescribeRosterEditor, BattlescribeDataEditor and BattlescribeDataIndexer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installs Battlescribe into /opt/Battlescribe and creates executeables in /usr/share | |
# TODO .desktop files would be nice | |
# Maintainer: Daniel Bauer <danijoo _at_ headlezz.net> | |
pkgname=Battlescribe | |
pkgver=2.00.14 | |
pkgrel=1 | |
pkgdesc="BattleScribe is a fast and powerful Army List Creator for tabletop wargamers." | |
arch=('any') | |
url="https://battlescribe.net" | |
license=('custom') | |
depends=("java-runtime") | |
source=("http://battlescribe.net/files/BattleScribe_${pkgver}_Multi.zip") | |
md5sums=('4e86d39fd07f04588482633603c03f04') | |
package() { | |
optdir="$pkgdir/opt/Battlescribe" | |
mkdir -p $optdir | |
cp AutoUpdater.jar $optdir | |
cp Data* $optdir | |
cp Roster* $optdir | |
cp -r lib $optdir | |
cp license.txt $optdir | |
bindir="$pkgdir/usr/bin" | |
mkdir -p $bindir | |
executables=('DataEditor.sh' 'DataIndexer.sh' 'RosterEditor.sh') | |
for e in "${executables[@]}"; do | |
basename=$(basename "$e") | |
filename="${basename%.*}" | |
echo "#!/bin/bash" > $bindir/Battlescribe$filename | |
echo java -jar /opt/Battlescribe/$filename.jar >> $bindir/Battlescribe$filename | |
chmod +x $bindir/Battlescribe$filename | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment