summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlastair Pharo2016-08-11 11:37:12 +1000
committerAlastair Pharo2016-08-11 11:37:12 +1000
commiteae9f3ed21274620bc8f1316d464ea1b88b53510 (patch)
treed05a6fb6995bdbaa779bb9ba4bc45d67a6dcd4ba
parent3bffea23dcc05079fca441318137313da1f009f4 (diff)
downloadaur-mulet-nightly-bin.tar.gz
Update package to use version given in application.ini
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD19
2 files changed, 17 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 50cb3f4c618..58d757ef6dd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,8 @@
+# Generated by mksrcinfo v8
+# Thu Aug 11 01:36:52 UTC 2016
pkgbase = mulet-nightly-bin
pkgdesc = A customized version of Firefox designed for testing B2G OS
- pkgver = 1
+ pkgver = 51.0a1@20160808224700
pkgrel = 1
url = https://wiki.mozilla.org/Mulet
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 4a3ec4611af..960278972c7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Maintainer: Alastair Pharo asppsa at gmail dot com
pkgname=mulet-nightly-bin
-pkgver=1
+pkgver=51.0a1@20160808224700
pkgrel=1
pkgdesc="A customized version of Firefox designed for testing B2G OS"
arch=('i686' 'x86_64')
@@ -14,15 +14,24 @@ optdepends=()
source=()
md5sums=()
+pkgver() {
+ _version=$(sed -n 's/^Version=\(.*\)$/\1/p' $srcdir/firefox/application.ini)
+ _buildid=$(sed -n 's/^BuildID=\(.*\)$/\1/p' $srcdir/firefox/application.ini)
+
+
+ echo "$_version@$_buildid"
+}
+
prepare() {
cd $srcdir
- if [ ! -f target.tar.bz2 ]; then
- _taskid=$(curl "https://index.taskcluster.net/v1/task/gecko.v1.mozilla-central.latest.linux.mulet.opt" | sed -n 's/^.*"taskId":\s*"\(.*\)".*$/\1/p')
- curl -L -O "https://queue.taskcluster.net/v1/task/$_taskid/artifacts/public/build/target.tar.bz2"
+ _taskid=$(curl "https://index.taskcluster.net/v1/task/gecko.v1.mozilla-central.latest.linux.mulet.opt" | sed -n 's/^.*"taskId":\s*"\(.*\)".*$/\1/p')
+ _file="mulet-$_taskid.tar.bz2"
+ if [ ! -f $_file ]; then
+ curl -L -o $_file "https://queue.taskcluster.net/v1/task/$_taskid/artifacts/public/build/target.tar.bz2"
fi
- tar -jxf target.tar.bz2
+ tar -jxf $_file
}
package() {