summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAlastair Pharo2016-08-03 01:14:27 +1000
committerAlastair Pharo2016-08-03 01:14:27 +1000
commit3bffea23dcc05079fca441318137313da1f009f4 (patch)
tree3771dfda40d2338197bbb603d272ffab27d919ce /PKGBUILD
downloadaur-3bffea23dcc05079fca441318137313da1f009f4.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4a3ec4611af
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# -*- shell-script -*-
+# Maintainer: Alastair Pharo asppsa at gmail dot com
+
+pkgname=mulet-nightly-bin
+pkgver=1
+pkgrel=1
+pkgdesc="A customized version of Firefox designed for testing B2G OS"
+arch=('i686' 'x86_64')
+url="https://wiki.mozilla.org/Mulet"
+license=('MPL' 'GPL' 'LGPL')
+depends=('gtk2' 'mime-types' 'dbus-glib' 'alsa-lib')
+makedepends=('curl')
+optdepends=()
+source=()
+md5sums=()
+
+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"
+ fi
+
+ tar -jxf target.tar.bz2
+}
+
+package() {
+ mkdir -p "$pkgdir/opt"
+ mkdir -p "$pkgdir/usr/bin"
+ cp -rp "$srcdir/firefox" "$pkgdir/opt/mulet-nightly-bin"
+ ln -s "/opt/mulet-nightly-bin/firefox" "$pkgdir/usr/bin/mulet"
+}