1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Maintainer: ilikenwf/Matt Parnell <parwok@gmail.com>
# Forked from palemoon PKGBUILD by WorMzy Tykashi <wormzy.tykashi@gmail.com>
# Contributor: artiom <a.mv at gmx dot fr>
pkgname=palemoon-git
pkgver=29.0.0a1+r2043.gd6dd25b5e
pkgrel=1
pkgdesc="Open source web browser based on Firefox focusing on efficiency (git version)"
arch=('i686' 'x86_64')
url="http://www.palemoon.org/"
license=('MPL' 'GPL' 'LGPL')
depends=('gtk2' 'dbus-glib' 'libxt' 'alsa-lib')
makedepends=('git' 'python2' 'autoconf2.13' 'unzip' 'zip' 'yasm' 'ffmpeg' 'libpulse' 'gcc5' 'gconf')
optdepends=('networkmanager: Location detection via available WiFi networks'
'libpulse: PulseAudio audio driver'
'hunspell: spell checker and morphological analyzer'
'hyphen: library for hyphenation and justification')
conflicts=('palemoon')
provides=('palemoon' 'firefox')
install=palemoon.install
source=(git+"https://github.com/MoonchildProductions/Pale-Moon"
git+"https://github.com/MoonchildProductions/UXP"
palemoon.desktop
mozconfig.in)
md5sums=('SKIP'
'SKIP'
'32231f6e6a532021fd04c6d7b32f4270'
'992f4c326e04652963213b325f8d3d0e')
pkgver() {
cd Pale-Moon
echo $(cat palemoon/config/version.txt)"+"$(git describe --long | sed 's/^[^-]*-/r/;s/-/./g')
}
prepare() {
sed 's#%SRCDIR%#'"$srcdir"'#g' mozconfig.in > mozconfig
cd Pale-Moon
git submodule init
git config submodule.UXP.url "$srcdir/UXP"
git submodule update
chmod -R +x build/autoconf/*
find . -name '*.sh' -exec chmod +x {} \;
}
build() {
cd Pale-Moon
export CC=gcc-5
export CXX=g++-5
export MOZBUILD_STATE_PATH="$srcdir/mozbuild"
export MOZCONFIG="$srcdir/mozconfig"
export CPPFLAGS="$CPPFLAGS -O2 -msse2 -mfpmath=sse -march=native -mtune=native"
export LDFLAGS="$LDFLAGS -Wl,-z,norelro,-O3,--sort-common,--as-needed,--relax,-z,combreloc,-z,global,--no-omagic"
./mach build
}
package() {
cd pmbuild
make package
cd dist
install -d "$pkgdir"/usr/{bin,lib}
install -d "$pkgdir"/usr/lib/palemoon
cp -r palemoon/* "$pkgdir/usr/lib/palemoon/"
ln -s "../lib/palemoon/palemoon" "$pkgdir/usr/bin/palemoon"
install -Dm644 "$srcdir/palemoon.desktop" "$pkgdir/usr/share/applications/palemoon.desktop"
# icons
install -Dm644 palemoon/browser/chrome/icons/default/default16.png \
"$pkgdir/usr/share/icons/hicolor/16x16/apps/palemoon.png"
install -Dm644 palemoon/browser/chrome/icons/default/default32.png \
"$pkgdir/usr/share/icons/hicolor/32x32/apps/palemoon.png"
install -Dm644 palemoon/browser/chrome/icons/default/default48.png \
"$pkgdir/usr/share/icons/hicolor/48x48/apps/palemoon.png"
install -Dm644 palemoon/browser/icons/mozicon128.png \
"$pkgdir/usr/share/icons/hicolor/128x128/apps/palemoon.png"
# use system-provided dictionaries
rm -rf "$pkgdir"/usr/lib/palemoon/{dictionaries,hyphenation}
ln -s /usr/share/hunspell "$pkgdir/usr/lib/palemoon/dictionaries"
ln -s /usr/share/hyphen "$pkgdir/usr/lib/palemoon/hyphenation"
# avoid duplicate binaries
# https://bugzilla.mozilla.org/show_bug.cgi?id=658850
#ln -sf palemoon "$pkgdir/usr/lib/palemoon/palemoon-bin"
rm -f "$pkgdir/usr/lib/palemoon/palemoon-bin"
}
|