summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlastair Pharo2016-08-03 01:14:27 +1000
committerAlastair Pharo2016-08-03 01:14:27 +1000
commit3bffea23dcc05079fca441318137313da1f009f4 (patch)
tree3771dfda40d2338197bbb603d272ffab27d919ce
downloadaur-3bffea23dcc05079fca441318137313da1f009f4.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD33
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..50cb3f4c618
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = mulet-nightly-bin
+ pkgdesc = A customized version of Firefox designed for testing B2G OS
+ pkgver = 1
+ pkgrel = 1
+ url = https://wiki.mozilla.org/Mulet
+ arch = i686
+ arch = x86_64
+ license = MPL
+ license = GPL
+ license = LGPL
+ makedepends = curl
+ depends = gtk2
+ depends = mime-types
+ depends = dbus-glib
+ depends = alsa-lib
+
+pkgname = mulet-nightly-bin
+
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"
+}