| 1 | # Contributor: Thomas Mudrunka <harvie@@email..cz> |
| 2 | # You can also contact me on http://blog.harvie.cz/ |
| 3 | |
| 4 | pkgname=firefox-trunk |
| 5 | pkgver=4 |
| 6 | pkgrel=1 |
| 7 | pkgdesc="Latest development version of Firefox. Also known as 'Trunk'. This can be UNSTABLE and it's only EXPERIMENTAL!" |
| 8 | arch=('i686' 'x86_64') |
| 9 | license=('GPL') |
| 10 | url="http://www.mozilla.org/projects/minefield/" |
| 11 | makedepends=( |
| 12 | 'mercurial' |
| 13 | 'autoconf-compat' |
| 14 | 'zip' 'pkgconfig' 'diffutils' 'libgnomeui>=2.24.0' 'python' 'xorg-server' |
| 15 | ) |
| 16 | depends=( |
| 17 | |
| 18 | ) |
| 19 | |
| 20 | source=( |
| 21 | #select one (there can be problems with some archive versions/formats): |
| 22 | "http://hg.mozilla.org/mozilla-central/archive/tip.tar.bz2" #smallest |
| 23 | #"http://hg.mozilla.org/mozilla-central/archive/tip.tar.gz" #small |
| 24 | #"http://hg.mozilla.org/mozilla-central/archive/tip.zip" #biggest |
| 25 | ) |
| 26 | |
| 27 | md5sums=( |
| 28 | # md5sums are changing so quickly and i can't update the PKGBUILD so often... |
| 29 | ) |
| 30 | |
| 31 | |
| 32 | build() { |
| 33 | #There is possibility to make firefox-trunk from mercurial. |
| 34 | #(need to be tuned...) |
| 35 | #cd ${srcdir} |
| 36 | #hg clone http://hg.mozilla.org/mozilla-central/ src |
| 37 | #cd ${srcdir}/src |
| 38 | |
| 39 | cd ${srcdir}/mozilla-central-* |
| 40 | ls -l |
| 41 | |
| 42 | #bsdtar xf |
| 43 | |
| 44 | # This was copypasted (with small differences) from: |
| 45 | # https://developer.mozilla.org/en/Mozilla_Source_Code_(Mercurial) |
| 46 | |
| 47 | # Generate a mozconfig yourself, or use this minimal default one |
| 48 | echo '. $topsrcdir/browser/config/mozconfig' > .mozconfig |
| 49 | |
| 50 | # configure will be automatically generated using the 'autoconf-2.13' |
| 51 | # command, except on OS X where autoconf213 will be used. |
| 52 | # If autoconf-2.13 isn't the right name for your system, as |
| 53 | # is the case on Ubuntu Linux, use the real command name as |
| 54 | # demonstrated below. |
| 55 | echo 'mk_add_options AUTOCONF=autoconf-2.13' >> .mozconfig |
| 56 | |
| 57 | # Now do the build; configure will be run automatically |
| 58 | make -f client.mk build || return 1 |
| 59 | |
| 60 | |
| 61 | |
| 62 | mkdir -p ${pkgdir}/opt/firefox-trunk |
| 63 | |
| 64 | #need instalation procedure here... |
| 65 | |
| 66 | chmod -R 655 ${pkgdir}/ |
| 67 | } |