summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3b13feab5d18af1652e019d4aafc7088db62c625 (plain)
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
# Maintainer: Plague-doctor <plague <at>> privacyrequired <<dot>> com >
# Thanks to: Simon Kronberg <Simon.Kronberg@gmail.com>

pkgname=waterfox-classic-bin
pkgver=2019.12
pkgrel=1
pkgdesc="Privacy oriented Firefox fork."
arch=('x86_64')
url="https://www.waterfoxproject.org"
license=('MPL')
depends=('libxt' 'libnotify' 'mime-types' 'nss' 'gtk2' 'gtk3' 'sqlite' 'dbus-glib')
optdepends=('alsa-lib' 'pulseaudio')
provides=('waterfox')
conflicts=('waterfox-bin')

source=(
    'waterfox-classic.desktop'
    'https://storage-waterfox.netdna-ssl.com/releases/linux64/installer/waterfox-classic-'"${pkgver}"'.en-US.linux-x86_64.tar.bz2'
    )

package() {
    # Create the directories.
    install -d "${pkgdir}"/{usr/{bin,share/{applications,pixmaps}},opt}

    # Install the desktop and the icon files.
    install -m644 "${srcdir}"/waterfox-classic.desktop "${pkgdir}"/usr/share/applications/
    install -m644 "${srcdir}"/waterfox/browser/chrome/icons/default/default128.png "${pkgdir}"/usr/share/pixmaps/waterfox-classic-icon.png

    # Copy the directory to /opt
    cp -r waterfox "${pkgdir}"/opt/waterfox-classic

    # Symlink the binary to /usr/bin
    ln -s /opt/waterfox-classic/waterfox "${pkgdir}"/usr/bin/waterfox-classic
}

sha256sums=('8286eea183ad60e114bc5457d792210a19ab33502cb89cbd937702e1f974c6ff'
            '3b26a2eb15da57fe890257810a1fc14c0394fc8d7874c71ec603a3e05a18b76c')