summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
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() {