summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorblackhole2021-04-01 12:11:08 +0200
committerblackhole2021-04-01 12:11:08 +0200
commit0f814e2dcd96f978b58987f8fd71baf1a13d45df (patch)
treea32aa896e9e20996d8cbb6d5648818e8b50f7877
parent1f712f5732cde3e0feacc6a719a09612819c2009 (diff)
downloadaur-0f814e2dcd96f978b58987f8fd71baf1a13d45df.tar.gz
Fix for aarch64 version
-rwxr-xr-x.SRCINFO2
-rw-r--r--PKGBUILD17
2 files changed, 15 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d53bff83e9b..5d01915facb 100755
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = hqplayer-embedded
pkgdesc = Signalyst HQPlayer Embedded HQPlayer - the high-end upsampling multichannel software HD-audio player
pkgver = 4.22.3
- pkgrel = 1
+ pkgrel = 2
url = http://www.signalyst.com/custom.html
install = install
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 3679da940cb..1b6d1b59851 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=hqplayer-embedded
_rpmver=4.22.3-59
_debpkgver=4.22.3-67
pkgver=4.22.3
-pkgrel=1
+pkgrel=2
pkgdesc="Signalyst HQPlayer Embedded
HQPlayer - the high-end upsampling multichannel software HD-audio player"
arch=('x86_64' 'aarch64')
@@ -20,14 +20,25 @@ sha256sums_aarch64=('5ee9595652b3289fe96ad5f33102fd062d2583a1eeb65fb615293067a8d
'5d4194a704979b3ff92482e155769460906745a66e759142eba33a2226f9cb3a')
package() {
- if [ "$arch" == "x86_64" ]; then
+ if [ "$(uname -m)" == "x86_64" ]; then
bsdtar xf hqplayerd-"$_rpmver".fc33.x86_64.rpm -C "$pkgdir"
else
- bsdtar xf hqplayerd_"$_debpkgver"_arm64.deb -C "$pkgdir"
+ cd "$srcdir"
+ bsdtar xf data.tar.xz -C "$pkgdir"
fi
+
install -Dm644 "hqplayerd.service" "$pkgdir/usr/lib/systemd/user/hqplayerd.service"
+
+ if [ "$(uname -m)" == "x86_64" ]; then
install -Dm644 "$pkgdir/usr/share/doc/hqplayerd/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
rm "$pkgdir/usr/share/doc/hqplayerd/LICENSE"
+ else
+ install -Dm644 "$pkgdir/usr/share/doc/hqplayerd/copyright" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+ rm "$pkgdir/usr/share/doc/hqplayerd/copyright"
+ install -Dm644 "$pkgdir/lib/systemd/system/hqplayerd.service" "$pkgdir/usr/lib/systemd/system/hqplayerd.service"
+ rm -rf "$pkgdir/lib"
+ fi
+
cp "$pkgdir/etc/hqplayer/hqplayerd.xml" "$pkgdir/usr/share/doc/hqplayerd/hqplayerd.xml"
rm "$pkgdir/etc/hqplayer/hqplayerd.xml"