# Maintainer: jc_gargma # Maintainer (AUR): WorMzy Tykashi # Contributor (AUR): artiom # Contributor (AUR): ilikenwf # Contributor (AUR): American_Jesus # # I maintain this because: # AUR version uses git # AUR version does not use system libs pkgname=palemoon _repo=Pale-Moon _exname=UXP pkgver=28.9.3 _uxpver=20200506 pkgrel=1 pkgdesc="Open source web browser based on Firefox focusing on efficiency." arch=(x86_64 i686) license=(MPL GPL LGPL) url="https://www.palemoon.org/" depends=(gtk2 desktop-file-utils libxt startup-notification mime-types dbus-glib libpulse alsa-lib bzip2 libffi hunspell libjpeg-turbo pixman zlib) makedepends=(unzip zip python2 yasm jack autoconf2.13 git) optdepends=('ffmpeg: various video and audio support' 'alsa-utils: ALSA support' 'jack: Jack support' 'pulseaudio: PulseAudio support' 'palemoon-preferences: Custom vendor.js with security by default' 'palemoon-preferences-basic: Custom vendor.js with less breaking changes') source=($pkgname-$pkgver.tar.gz::https://github.com/MoonchildProductions/$_repo/archive/${pkgver}_Release.tar.gz $_exname-$_uxpver.tar.gz::https://github.com/MoonchildProductions/$_exname/archive/RELBASE_${_uxpver}.tar.gz mozconfig.in system-libs.patch) b2sums=('64c1ec8529647ef3b7c587796847f8b3cf2868cc6f67e0dcd682e0c34536581ce2ffe9792ef2e4a5526d1694ae9cb185fe8faee5fced9fe4dba68e79daff5806' '6cb79bddf6f81ad64d45ee56b4929d1c8222cb6c2073dd55ee0e1326476fb347853e4e5c966bceaa4f6cbad067c467df16e4caae721cf577b6016f5e63a5a94b' '233229764b0c4c1af30e100fa8dddd36f59405064a0c01f54fd1b387af3724b94dd5a78b3fc43be1eacc8b23cabdfd91a9d127360ceecea2bbebf48f42839d7a' '47cc9da19cb7003ea896e8d1f3f77197548cf917c943ec1bd8526daaf6212d2c2c90bc417df156ee571c9ca052749a6a3a13f8acc150f1983a8bf0f8f1ebe2de') validpgpkeys=('3059E09144F56804F0FBF4E126B40624BDBFD9F3') prepare() { sed 's#%SRCDIR%#'"${srcdir}"'#g' mozconfig.in > mozconfig cd ${_repo}-${pkgver}_Release rm -rf platform mv ../${_exname}-RELBASE_${_uxpver} platform # I'll use system libs if I darn well choose, thank you very much. patch -Np1 -i ../system-libs.patch rm platform/build/directive4.py } build() { cd ${_repo}-${pkgver}_Release export MOZBUILD_STATE_PATH="${srcdir}/mozbuild" export MOZCONFIG="${srcdir}/mozconfig" export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=4 -fPIC" export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=4 -fPIC" ./mach build } package() { cd pmbuild make package cd dist install -d "${pkgdir}"/usr/{bin,lib} cp -r palemoon/ "${pkgdir}/usr/lib/${pkgname}" ln -s "/usr/lib/${pkgname}/palemoon" "${pkgdir}/usr/bin/palemoon" # icons install -Dm644 ${srcdir}/${_repo}-${pkgver}_Release/palemoon/branding/official/default16.png \ "${pkgdir}/usr/share/icons/hicolor/16x16/apps/${pkgname}.png" install -Dm644 ${srcdir}/${_repo}-${pkgver}_Release/palemoon/branding/official/default32.png \ "${pkgdir}/usr/share/icons/hicolor/32x32/apps/${pkgname}.png" install -Dm644 ${srcdir}/${_repo}-${pkgver}_Release/palemoon/branding/official/default48.png \ "${pkgdir}/usr/share/icons/hicolor/48x48/apps/${pkgname}.png" install -Dm644 ${srcdir}/${_repo}-${pkgver}_Release/palemoon/branding/official/mozicon128.png \ "${pkgdir}/usr/share/icons/hicolor/128x128/apps/${pkgname}.png" # install desktop file install -Dm644 "${srcdir}/${_repo}-${pkgver}_Release/palemoon/branding/official/palemoon.desktop" \ "${pkgdir}/usr/share/applications/${pkgname}.desktop" }