diff options
author | Neil Simpson | 2021-12-10 17:12:25 -0500 |
---|---|---|
committer | Neil Simpson | 2021-12-10 17:12:25 -0500 |
commit | 8db5ec7a8bae03fa3100c48116a3c372e7dca7e2 (patch) | |
tree | 89edfbe9cac76d1becdac3433b0b1294f1e16f46 /PKGBUILD | |
parent | 62a827e799cae5ca197eea30a3a43874cd4de18d (diff) | |
download | aur-bubblebuddy-git.tar.gz |
0.3.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 26 |
1 files changed, 24 insertions, 2 deletions
@@ -2,7 +2,7 @@ pkgname=bubblebuddy-git _pkgname=bubblebuddy -pkgver=0.2.0 +pkgver=0.3.0 pkgrel=1 pkgdesc="Bubble Hockey program intended for Raspberry Pi" arch=("any") @@ -17,6 +17,22 @@ sha256sums=("SKIP" "489548c045d2149a8ebb87d424909c005c0174e3bd91af8aa3ba22e16bd13292" "cc675f85f1e8f72f1376864f439b07d124a7a40d5bc2ce9c5a03e3430c82b59e") + +case $(uname -m) in + i686) + _electronbuilderarch='ia32' + ;; + armv7h) + _electronbuilderarch='armv7l' + ;; + aarch64) + _electronbuilderarch='arm64' + ;; + *) + _electronbuilderarch='x64' + ;; +esac + build() { cd "$srcdir/$_pkgname" @@ -25,6 +41,12 @@ build() { } package() { + local _outpath='linux' + if [ "$_electronbuilderarch" != 'x64' ]; then + _outpath="$_outpath-$_electronbuilderarch" + fi + _outpath="$_outpath-unpacked" + cd "$srcdir" install -Dm 644 bubblebuddy.desktop "$pkgdir"/usr/share/applications/bubblebuddy.desktop install -Dm 755 bubblebuddy.sh "$pkgdir"/usr/bin/bubblebuddy @@ -35,5 +57,5 @@ package() { cd "$srcdir/$_pkgname/dist_electron" mkdir "$pkgdir"/usr/share/$_pkgname - cp -R "linux-unpacked"/* "$pkgdir"/usr/share/$_pkgname + cp -R "$_outpath"/* "$pkgdir"/usr/share/$_pkgname } |