I'm using arch linux both on my laptop and desktop. The AUR is a fast and easy way to install community provided packages. It would be great to have PM there. I'm not familiar with packaging, but the arch wiki provides a comprehensive source of information which helped me in creating the package. I have couple of questions regarding this:
- First of all is it ok to submit it there? Using the access2godzilla build binaries on sourceforge.
- I tested the package that it works both on my laptop and desktop, but this is my first package I've created, it's likely that there may be some problems. Should I give this to some one with more experience?
- Some information I copied from similar firefox-esr-bin package, like licences and dependencies. Here is the full PKGBUILD. What do you think, is the description ok? I copied it from PM4Linux sf page. I'm not sure should I use palemoon-bin as package name instead to show that it is a binary build.
Code: Select all
# Maintainer: sumt <sumt at sci dot fi>
pkgname=palemoon
pkgver=24.3.1
pkgrel=1
pkgdesc="Browser based on Firefox that's optimised for performance."
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/pm4linux/"
license=('MPL' 'GPL' 'LGPL')
depends=('gtk2' 'dbus-glib' 'desktop-file-utils' 'libxt' 'mime-types' 'nss' 'alsa-lib')
optdepends=('networkmanager: Location detection via available WiFi networks'
'gstreamer0.10-base-plugins: vorbis decoding, ogg demuxing'
'gstreamer0.10-good-plugins: webm and mp4 demuxing'
'gstreamer0.10-bad-plugins: aac, vp8 and opus decoding'
'gstreamer0.10-ugly-plugins: h.264 and mp3 decoding'
'gstreamer0.10-ffmpeg: more decoders'
'libpulse: PulseAudio audio driver')
install=palemoon.install
source=(http://downloads.sourceforge.net/pm4linux/$pkgname-$pkgver.en-US.linux-$CARCH.tar.bz2
$pkgname.desktop)
md5sums=('88fe69cd12baf1de15d58c1be5e68a2e'
'00d640ab6261fd1fb4adbadf79edd1f5')
[ "$CARCH" == "i686" ] && md5sums[0]='065793af06c68a4491acb2fd1a9eda29'
package() {
install -d "$pkgdir"/usr/{bin,lib}
cp -r palemoon/ "$pkgdir/usr/lib/$pkgname"
ln -s "/usr/lib/$pkgname/palemoon" "$pkgdir/usr/bin/palemoon"
install -Dm644 palemoon.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
# 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"
# use system-provided dictionaries
rm -rf "$pkgdir"/usr/lib/$pkgname/{dictionaries,hyphenation}
ln -s /usr/share/hunspell "$pkgdir/usr/lib/$pkgname/dictionaries"
ln -s /usr/share/hyphen "$pkgdir/usr/lib/$pkgname/hyphenation"
# avoid duplicate binaries
# https://bugzilla.mozilla.org/show_bug.cgi?id=658850
ln -sf palemoon "$pkgdir/usr/lib/$pkgname/palemoon-bin"
}