opt/firefox-bin/Pkgfile
2018-11-02 21:53:55 +01:00

25 lines
681 B
Plaintext

# Description: Firefox binary
# URL: http://www.mozilla.com
# Maintainer: Fredrik Rinnestam, fredrik at crux dot guru
# Depends on: gtk3
name=firefox-bin
version=63.0.1
release=1
source=(http://ftp.mozilla.org/pub/firefox/releases/$version/linux-x86_64/en-US/firefox-$version.tar.bz2)
build() {
cd firefox
install -d $PKG/usr/{lib,bin}
mv $SRC/firefox $PKG/usr/lib/firefox
ln -s /usr/lib/firefox/firefox $PKG/usr/bin/firefox
mkdir -p $PKG/usr/lib/firefox/lib
find $PKG/usr/lib/firefox -name '*.so' -exec cp '{}' lib/ \;
mkdir -p $PKG/etc/revdep.d
echo "/usr/lib/firefox/lib" > $PKG/etc/revdep.d/firefox-bin
rm -r $PKG/usr/lib/firefox/browser/features
}