diff options
author | Michal Wojdyla | 2021-02-02 23:29:53 +0100 |
---|---|---|
committer | Michal Wojdyla | 2021-02-02 23:29:53 +0100 |
commit | 04adc52989314b9b1fa6ad25660d68c1cbdfc2b1 (patch) | |
tree | 2835be847bad109b12e3a61f87f5c314ddad61fe | |
download | aur-04adc52989314b9b1fa6ad25660d68c1cbdfc2b1.tar.gz |
first commit
-rw-r--r-- | .SRCINFO | 40 | ||||
-rw-r--r-- | PKGBUILD | 71 | ||||
-rw-r--r-- | mozconfig.in | 36 |
3 files changed, 147 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3ac53e0ba0ac --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,40 @@ +pkgbase = palemoon-gtk3 + pkgdesc = Open source web browser based on Firefox focusing on efficiency. + pkgver = 29.0.0 + pkgrel = 1 + url = https://www.palemoon.org/ + arch = i686 + arch = x86_64 + license = MPL + license = GPL + license = LGPL + makedepends = git + makedepends = python2 + makedepends = autoconf2.13 + makedepends = unzip + makedepends = zip + makedepends = yasm + makedepends = libpulse + depends = gtk2 + depends = gtk3 + depends = dbus-glib + depends = desktop-file-utils + depends = libxt + depends = mime-types + depends = alsa-lib + depends = startup-notification + optdepends = libpulse: PulseAudio audio driver + optdepends = ffmpeg: various video and audio support + provides = palemoon + conflicts = palemoon + source = git+https://repo.palemoon.org/MoonchildProductions/Pale-Moon?signed#commit=79ff7796e5 + source = git+https://repo.palemoon.org/MoonchildProductions/UXP + source = mozconfig.in + validpgpkeys = 3059E09144F56804F0FBF4E126B40624BDBFD9F3 + validpgpkeys = 3DAD8CD107197488D2A2A0BD40481E7B8FCF9CEC + sha1sums = SKIP + sha1sums = SKIP + sha1sums = 62daef55ba633f72e16afaa0d7c58b041f5c28f1 + +pkgname = palemoon-gtk3 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..02ce24233f95 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,71 @@ +# Maintainer: Michal Wojdyla < micwoj9292 at gmail dot com > +# Contributor: WorMzy Tykashi <wormzy.tykashi@gmail.com> +# Contributor: artiom <a.mv at gmx dot fr> +# Contributor: ilikenwf +# Contributor: American_Jesus +pkgname=palemoon-gtk3 +_pkgname=palemoon +_repo=Pale-Moon +pkgver=29.0.0 +# Commit can be found at https://repo.palemoon.org/MoonchildProductions/Pale-Moon/releases +_commit=79ff7796e5 +pkgrel=1 +pkgdesc="Open source web browser based on Firefox focusing on efficiency." +arch=('i686' 'x86_64') +url="https://www.palemoon.org/" +license=('MPL' 'GPL' 'LGPL') +provides=('palemoon') +conflicts=('palemoon') +depends=('gtk2' 'gtk3' 'dbus-glib' 'desktop-file-utils' 'libxt' 'mime-types' 'alsa-lib' + 'startup-notification') +makedepends=('git' 'python2' 'autoconf2.13' 'unzip' 'zip' 'yasm' + 'libpulse') +optdepends=('libpulse: PulseAudio audio driver' + 'ffmpeg: various video and audio support') +source=(git+"https://repo.palemoon.org/MoonchildProductions/${_repo}?signed#commit=${_commit}" + git+"https://repo.palemoon.org/MoonchildProductions/UXP" + mozconfig.in) +sha1sums=('SKIP' + 'SKIP' + '62daef55ba633f72e16afaa0d7c58b041f5c28f1') +validpgpkeys=('3059E09144F56804F0FBF4E126B40624BDBFD9F3' + '3DAD8CD107197488D2A2A0BD40481E7B8FCF9CEC') + +prepare() { + sed 's#%SRCDIR%#'"${srcdir}"'#g' mozconfig.in > mozconfig + cd ${_repo} + git submodule init + git config submodule.platform.url "${srcdir}/UXP" + git submodule update +} + +build() { + cd ${_repo} + + export MOZBUILD_STATE_PATH="${srcdir}/mozbuild" + export MOZCONFIG="${srcdir}/mozconfig" + export CPPFLAGS="${CPPFLAGS} -O2 -Wno-format-overflow" + ./mach build +} + +package() { + cd pmbuild + make package + cd dist + install -d "${pkgdir}"/usr/{bin,lib} + cp -r palemoon/ "${pkgdir}/usr/lib/${_pkgname}" + ln -s "../lib/${_pkgname}/palemoon" "${pkgdir}/usr/bin/palemoon" + + # icons + install -Dm644 palemoon/browser/chrome/icons/default/default16.png \ + "${pkgdir}/usr/share/icons/hicolor/16x16/apps/${_pkgname}.png" + install -Dm644 palemoon/browser/chrome/icons/default/default32.png \ + "${pkgdir}/usr/share/icons/hicolor/32x32/apps/${_pkgname}.png" + install -Dm644 palemoon/browser/chrome/icons/default/default48.png \ + "${pkgdir}/usr/share/icons/hicolor/48x48/apps/${_pkgname}.png" + install -Dm644 palemoon/browser/icons/mozicon128.png \ + "${pkgdir}/usr/share/icons/hicolor/128x128/apps/${_pkgname}.png" + + # install desktop file + install -Dm644 "${srcdir}/${_repo}/palemoon/branding/official/palemoon.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop" +} diff --git a/mozconfig.in b/mozconfig.in new file mode 100644 index 000000000000..d3a868a55bc4 --- /dev/null +++ b/mozconfig.in @@ -0,0 +1,36 @@ +mk_add_options AUTOCLOBBER=1 +mk_add_options MOZ_OBJDIR=%SRCDIR%/pmbuild +ac_add_options --enable-application=palemoon + +ac_add_options --enable-optimize="-O2 -w" + +ac_add_options --enable-official-branding +export MOZILLA_OFFICIAL=1 +export MOZ_PKG_SPECIAL=gtk3 + +ac_add_options --enable-default-toolkit=cairo-gtk3 +ac_add_options --enable-jemalloc +ac_add_options --enable-strip +ac_add_options --enable-devtools +ac_add_options --enable-phoenix-extensions +ac_add_options --with-pthreads + +ac_add_options --disable-tests +ac_add_options --disable-debug +ac_add_options --disable-eme +ac_add_options --disable-parental-controls +ac_add_options --disable-accessibility +ac_add_options --disable-webrtc +ac_add_options --disable-gamepad +ac_add_options --disable-necko-wifi +ac_add_options --disable-updater +ac_add_options --disable-gconf + +ac_add_options --x-libraries=/usr/lib + +# Use python2 +mk_add_options PYTHON=/usr/bin/python2 + +# uncomment the following to limit the number of parallel build jobs +# remember to run updpkgsums after, or you'll get a checksum failure +#mk_add_options MOZ_MAKE_FLAGS="-j4" |