summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Bebbington2017-11-07 02:30:28 +0000
committerTom Bebbington2017-11-07 02:30:28 +0000
commit5e2fca16d3b0de3de25f4d6c633bafb2ef3de37b (patch)
tree011b6344ea90bd5be4ca8930a90f7bc1c026a5b7
parent4e7ed467191f5ca335a3ab93e8a57f83766c457f (diff)
downloadaur-5e2fca16d3b0de3de25f4d6c633bafb2ef3de37b.tar.gz
Use clearer IDs for builds
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD12
2 files changed, 8 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8ab8a416071..cc9ed509a54 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = citra-nightly-bin
pkgdesc = An experimental open-source Nintendo 3DS emulator/debugger
pkgver = 401_20171106_c6b2cc2
- pkgrel = 4
+ pkgrel = 5
url = https://github.com/citra-emu/citra-nightly/
arch = x86_64
license = GPL
diff --git a/PKGBUILD b/PKGBUILD
index fd411280b9c..8f6d81c9dc9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,16 +3,18 @@
_pkgbase='citra'
pkgbase="$_pkgbase-nightly-bin"
pkgname=("$_pkgbase-nightly-bin" "$_pkgbase-qt-nightly-bin")
-pkgrel=4
+pkgrel=5
pkgver=401_20171106_c6b2cc2
pkgdesc="An experimental open-source Nintendo 3DS emulator/debugger"
provides=('citra' 'citra-qt')
license=('GPL')
arch=('x86_64')
url="https://github.com/citra-emu/citra-nightly/"
-id="$(echo $pkgver | cut -d'_' -f2)-$(echo $pkgver | cut -d'_' -f3)"
+_nightly_id=$(echo $pkgver | cut -d'_' -f1)
+_ref="$(echo $pkgver | cut -d'_' -f2)-$(echo $pkgver | cut -d'_' -f3)"
+
source=(
- "https://github.com/citra-emu/citra-nightly/releases/download/nightly-$(echo $pkgver | cut -d'_' -f1)/citra-linux-$id.tar.xz"
+ "https://github.com/citra-emu/citra-nightly/releases/download/nightly-$_nightly_id/citra-linux-$_ref.tar.xz"
"https://raw.githubusercontent.com/citra-emu/citra/master/dist/citra.desktop"
"https://raw.githubusercontent.com/citra-emu/citra/master/dist/citra.svg"
"citra.bash"
@@ -29,7 +31,7 @@ package_citra-nightly-bin() {
mkdir -p "${pkgdir}/usr/bin"
cp $srcdir/citra.bash "${pkgdir}/usr/bin/citra"
- cd $srcdir/citra-linux-$id
+ cd $srcdir/citra-linux-$_ref
mkdir -p "${pkgdir}/opt/citra"
cp citra "${pkgdir}/opt/citra"
}
@@ -40,7 +42,7 @@ package_citra-qt-nightly-bin() {
mkdir -p $pkgdir/usr/bin
cp $srcdir/citra-qt.bash "${pkgdir}/usr/bin/citra-qt"
- cd $srcdir/citra-linux-$id
+ cd $srcdir/citra-linux-$_ref
mkdir -p $pkgdir/opt/citra
mv citra-qt $pkgdir/opt/citra
mkdir -p $pkgdir/usr/share/applications