summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPhilip Abernethy2016-02-17 19:08:05 +0100
committerPhilip Abernethy2016-02-17 19:08:37 +0100
commit012bf02a43efee08272414997f4f4266519b4207 (patch)
treed73fcdab34169a6097723c2e1872ba85de5b5cb2 /PKGBUILD
parentff6081821c70103bbaae7e0db2d7bae30517e669 (diff)
downloadaur-aquaria-hib.tar.gz
Switched source declaration
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 15 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d1ebb0b50b0..bfbdc4fd63c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,6 @@ pkgver=1.1.3
pkgrel=4
pkgdesc="A 2D fantasy underwater action-adventure game (Humble Bundle version)"
arch=('i686' 'x86_64')
-[[ $CARCH = "i686" ]] && _arch='i386' || _arch='amd64'
url="http://www.bit-blot.com/"
license=('custom:commercial')
provides=('aquaria-1.1.3')
@@ -12,19 +11,23 @@ DLAGENTS+=('hib::/usr/bin/echo "Could not find %u. Manually download it to \"$(p
PKGEXT='.pkg.tar'
-source=("hib://aquaria_${pkgver}_$_arch.deb"
+source_i686=("hib://aquaria_${pkgver}_i386.deb",
"aquaria.desktop")
-[[ $CARCH = "i686" ]] && sha512sums=('017a06f2bc4ca50d191b20e27b1cbdb49658e03fbcb7e18e731832c4b528d63bffd88c1d1953b2c8513f9c351a5ea1e736187d735554dfc6e6f7d25917b9a606') || sha512sums=('c7f0cb4eacef6804d57a93dd572be3b18c8aa78953d66f14e625e19d39e25d85b777157db79bccbbeabb9a7dc655f1ff43f6cbd287a5c4a89e1eb2e6b4ee219a')
-sha512sums+=('9c647f9452995d7ed78511ba80ecd0f656bbe33992116096a54d8e67ac7f54e919ac151662485ed7363e7834b3535cc76e9a376e78c058205d94ad75f831af05')
+source_x86_64=("hib://aquaria_${pkgver}_amd64.deb",
+ "aquaria.desktop")
+sha512sums_i686=('017a06f2bc4ca50d191b20e27b1cbdb49658e03fbcb7e18e731832c4b528d63bffd88c1d1953b2c8513f9c351a5ea1e736187d735554dfc6e6f7d25917b9a606',
+ '9c647f9452995d7ed78511ba80ecd0f656bbe33992116096a54d8e67ac7f54e919ac151662485ed7363e7834b3535cc76e9a376e78c058205d94ad75f831af05')
+sha512sums_x86_64=('c7f0cb4eacef6804d57a93dd572be3b18c8aa78953d66f14e625e19d39e25d85b777157db79bccbbeabb9a7dc655f1ff43f6cbd287a5c4a89e1eb2e6b4ee219a',
+ '9c647f9452995d7ed78511ba80ecd0f656bbe33992116096a54d8e67ac7f54e919ac151662485ed7363e7834b3535cc76e9a376e78c058205d94ad75f831af05')
package() {
- mkdir $srcdir/data
- tar -C $srcdir/data -xzf data.tar.gz
- pushd $srcdir/data
- find -type f -path "./opt*" -exec install -Dm755 '{}' $pkgdir/'{}' \;
+ mkdir "${srcdir}"/data
+ tar -C "${srcdir}"/data -xzf data.tar.gz
+ pushd "${srcdir}"/data
+ find -type f -path "./opt*" -exec install -Dm755 {} "${pkgdir}"/{} \;
popd
- mv $pkgdir/opt/Aquaria $pkgdir/opt/aquaria
- mkdir -p $pkgdir/usr/bin
- ln -s /opt/aquaria/aquaria $pkgdir/usr/bin/aquaria
- install -Dm644 $srcdir/aquaria.desktop $pkgdir/usr/share/applications/aquaria.desktop
+ mv "${pkgdir}"/opt/Aquaria "${pkgdir}"/opt/aquaria
+ mkdir -p "${pkgdir}"/usr/bin
+ ln -s /opt/aquaria/aquaria "${pkgdir}"/usr/bin/aquaria
+ install -Dm644 "${srcdir}"/aquaria.desktop "${pkgdir}"/usr/share/applications/aquaria.desktop
}