summaryrefslogtreecommitdiff
path: root/community/dwarffortress/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-17 10:43:54 +0100
committerErich Eckner <git@eckner.net>2018-01-17 10:43:54 +0100
commit1ba7e6be82bb8e652169998171192774e51810f3 (patch)
tree49fa2926ee1ce9f869540c2dcd5b5bd3013ce368 /community/dwarffortress/PKGBUILD
parenta23b63701f1091d778b093b47de0120aee2ee7d8 (diff)
downloadpackages-1ba7e6be82bb8e652169998171192774e51810f3.tar.xz
community/dwarffortress: source variable name changed - add more fancy bashing
Diffstat (limited to 'community/dwarffortress/PKGBUILD')
-rw-r--r--community/dwarffortress/PKGBUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/community/dwarffortress/PKGBUILD b/community/dwarffortress/PKGBUILD
index 2563eacb..69c67ebb 100644
--- a/community/dwarffortress/PKGBUILD
+++ b/community/dwarffortress/PKGBUILD
@@ -1,2 +1,7 @@
-source_i686=(http://www.bay12games.com/dwarves/df_${_pkgver}_linux32.tar.bz2)
-sha256sums_i686=('b92ae26f00aaea8678892a735d2dbad89d5701085d22cb315c462346dc2431ad')
+for ((i=${#source[@]}; i>0; i--)); do
+ if [ "${source[${i}]}" = "http://www.bay12games.com/dwarves/df_${_pkgver}_linux.tar.bz2" ]; then
+ break;
+ fi
+done
+source[${i}]="http://www.bay12games.com/dwarves/df_${_pkgver}_linux32.tar.bz2"
+sha256sums[${i}]='b92ae26f00aaea8678892a735d2dbad89d5701085d22cb315c462346dc2431ad'