From 1ba7e6be82bb8e652169998171192774e51810f3 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 17 Jan 2018 10:43:54 +0100 Subject: community/dwarffortress: source variable name changed - add more fancy bashing --- community/dwarffortress/PKGBUILD | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'community/dwarffortress') 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' -- cgit v1.2.3-70-g09d2