summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAlastair Pharo2016-08-11 11:37:12 +1000
committerAlastair Pharo2016-08-11 11:37:12 +1000
commiteae9f3ed21274620bc8f1316d464ea1b88b53510 (patch)
treed05a6fb6995bdbaa779bb9ba4bc45d67a6dcd4ba /PKGBUILD
parent3bffea23dcc05079fca441318137313da1f009f4 (diff)
downloadaur-eae9f3ed21274620bc8f1316d464ea1b88b53510.tar.gz
Update package to use version given in application.ini
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD19
1 files changed, 14 insertions, 5 deletions
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() {