by hamal » Thu Feb 13, 2014 4:23 pm
It seems that Firefox built for Ubuntu on Launchpad is working on ALarm too.
Modified version of your PKGBUILD ::
$this->bbcode_second_pass_code('', '
# Getting binary package from Launchpad / Ubuntu Trusty
# https://launchpad.net/ubuntu/trusty/armhf/firefox/27.0~b6+build1-0ubuntu1
pkgname=firefox-ubuntu-arm
pkgver=27.0
pkgrel=1
pkgdesc="Ubuntu's Mozilla Firefox (armhf)"
arch=('armv7h armv6h')
url=("http://www.mozilla.org")
license=('MPL' 'GPL' 'LGPL')
conflicts=("iceweasel-bin-arm")
provides=("firefox")
depends=( 'gtk2' 'mozilla-common' 'libxt' 'startup-notification' 'mime-types' 'dbus-glib' 'alsa-lib'
'libnotify' 'desktop-file-utils' 'hicolor-icon-theme' 'libvpx' 'libevent' 'nss' 'hunspell' 'sqlite')
install=firefox-ubuntu-arm.install
source=( "http://launchpadlibrarian.net/162567608/firefox_27.0%7Eb6%2Bbuild1-0ubuntu1_armhf.deb" )
build(){
mkdir -p "${srcdir}/ffarm"
bsdtar -xf "firefox_27.0%7Eb6%2Bbuild1-0ubuntu1_armhf.deb" -C "${srcdir}/ffarm"
}
package(){
msg2 "Packaging firefox..."
tar Jxvf "${srcdir}/ffarm/data.tar.xz" -C "$pkgdir"/
msg2 "Removing non-archlinux-compatible files..."
rm -rf "${pkgdir}"/etc/
rm -rf "${pkgdir}"/usr/share/lintian
rm -rf "${pkgdir}"/usr/share/apport
}
md5sums=('eb41001113ac41c16a4ad1103acd34d6')
')
firefox-ubuntu-arm.install
$this->bbcode_second_pass_code('', '
post_install() {
update-desktop-database -q
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}
post_upgrade() {
post_install $1
}
post_remove() {
post_install $1
}
')