summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4a3ec4611af3aa95a11791a8d01ffa6a81d2dcd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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"
}