summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorXZS2017-03-14 22:53:16 +0100
committerXZS2017-03-14 23:39:06 +0100
commit3afc4c15a24a7bdb39646fc78ed4a7d55b59ae09 (patch)
tree6df456a12b466fdc8146fe3d9b3829a06a4f793d /PKGBUILD
parentcd92e17cdade0c5e6af0b897bbc11fa5f5130965 (diff)
downloadaur-3afc4c15a24a7bdb39646fc78ed4a7d55b59ae09.tar.gz
properly exclude wrong architecture executable
Instead of eliminating these files in the preparation function, a more targeted installation does only capture what is needed. Additionally, this makes the package function aware of the architecture variable as the underlying unity game engine expresses it.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD14
1 files changed, 5 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 1fb3bff59774..6519de82c693 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -23,22 +23,18 @@ md5sums=('765bfdb52584df48784728e6476f47d7'
'0fe19f989f9606a825b67b9b379c9d6c'
'8412b1e4cc11be455af993d921a68ced')
-prepare() {
- case $CARCH in
- i686) _notarch=x86_64 ;;
- x86_64) _notarch=x86 ;;
- esac
- find -name "*$_notarch" -exec rm -r {} +
-}
-
package() {
# Prepare variables.
destdir="$pkgdir/opt/$pkgname"
+ if [ "$CARCH" == 'i686' ]
+ then
+ CARCH=x86
+ fi
install -d "$destdir" "$pkgdir"/usr/{bin,share/applications}
# Install the game and data files.
cp -r --no-preserve=mode,ownership "${_longname}_Data" "$destdir"
- install "$_longname".* "$destdir"
+ install "$_longname.$CARCH" "$destdir"
# Now, care for supplementary files.
for size in 16 22 24 32 36 48 64 72 96 128 192 256 384 512; do