diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-01-25 21:00:49 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-01-25 21:00:49 -0600 |
commit | ccf8413c0b9397a1c14a7bd53fe196fb617ae0de (patch) | |
tree | 11ecc59e2bb200a8614106c6b3b3ebde2c062a5d /main/firefox/APKBUILD | |
parent | dcc39ed47e2a83ae916eaa5f9c374c99a11b5d2a (diff) | |
download | aports-ccf8413c0b9397a1c14a7bd53fe196fb617ae0de.tar.bz2 aports-ccf8413c0b9397a1c14a7bd53fe196fb617ae0de.tar.xz |
testing/firefox: promote to main
Diffstat (limited to 'main/firefox/APKBUILD')
-rw-r--r-- | main/firefox/APKBUILD | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/main/firefox/APKBUILD b/main/firefox/APKBUILD new file mode 100644 index 000000000..156590666 --- /dev/null +++ b/main/firefox/APKBUILD @@ -0,0 +1,95 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=firefox +pkgver=3.6.13 +_xulver=1.9.2.13 +pkgrel=2 +pkgdesc="firefox web browser (unofficial branding)" +url="http://www.firefox.com" +arch="all" +license="GPL LGPL MPL" +depends="xulrunner" +makedepends="xulrunner-dev>=${_xulver} + + nspr-dev + nss-dev + gtk+-dev + dbus-glib-dev + alsa-lib-dev + libvorbis-dev + libogg-dev + libtheora-dev + wireless-tools-dev + libnotify-dev + libevent-dev + libxt-dev + jpeg-dev + bzip2-dev + hunspell-dev + startup-notification-dev + sqlite-dev + libidl-dev + + autoconf2.13 + + python + zip + + autoconf + automake + libtool" +install="" +subpackages="" +source="http://releases.mozilla.org/pub/mozilla.org/${pkgname}/releases/${pkgver}/source/${pkgname}-${pkgver}.source.tar.bz2 + mozconfig + firefox-agent.patch + firefox-defaults.patch + firefox-version.patch + firefox.desktop + firefox-safe.desktop" + +_xulrunner_version="${_xulver%.*}" +_builddir="${srcdir}/mozilla-${_xulrunner_version}" +prepare() { + local i + + cd "$_builddir" + + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + + cp "${srcdir}/mozconfig" .mozconfig +} + +build() { + cd "$_builddir" + + # mozilla's buildsystem is on drugs, so we just kill our CFLAGS and hope + # for the best. --nenolod + unset CFLAGS + unset CXXFLAGS + + make -j1 -f client.mk build MOZ_MAKE_FLAGS="$MAKEFLAGS" || return 1 +} + +package() { + cd "$_builddir" + make -j1 DESTDIR="$pkgdir" install || return 1 + + install -m755 -d ${pkgdir}/usr/share/applications + install -m755 -d ${pkgdir}/usr/share/pixmaps + install -m644 ${srcdir}/mozilla-1.9.2/browser/branding/unofficial/default48.png ${pkgdir}/usr/share/pixmaps/firefox.png + install -m644 ${srcdir}/firefox.desktop ${pkgdir}/usr/share/applications/firefox.desktop + install -m644 ${srcdir}/firefox-safe.desktop ${pkgdir}/usr/share/applications/firefox-safe.desktop +} + +md5sums="d7c90aed8209beefa74badf02e8eeae1 firefox-3.6.13.source.tar.bz2 +7938f0054456f3767d2427dff137ab34 mozconfig +f437e94acff8f810991271ef4677d859 firefox-agent.patch +1807651225b021e043154f8bba715a19 firefox-defaults.patch +92c11c66dd69b03f214002fededd1fc8 firefox-version.patch +ba96924ece1d77453e462429037a2ce5 firefox.desktop +6f38a5899034b7786cb1f75ad42032b8 firefox-safe.desktop" |