summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 400d41fbe529c3df5b7a4b67746b1cbf5ef68897 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Mantainer: epitron <chris@ill-logic.com>
# Contributor: sxe <sxxe@gmx.de>

pkgname=qupzilla-git
_pkgname=qupzilla
pkgver=2.1.2.r85.g54949f94
pkgrel=2
pkgdesc="A fast and flexible browser (inspired by Opera Classic). Based on QtWebEngine (Chromium's browser engine), with extra plugins."
arch=('i686' 'x86_64')
url="http://www.qupzilla.com"
license=('GPL')
depends=('qt5-webengine' 'qt5-x11extras' 'qt5-svg' 'hicolor-icon-theme' 'openssl>=1.1.0')
makedepends=('git' 'qt5-tools')
provides=('qupzilla' 'qupzilla-qt5')
conflicts=('qupzilla' 'qupzilla-qt5' 'qupzilla-qt5-git')
optdepends=(
  'bash-completion: bash completion support'
  'kwallet: kf5 kwallet integration'
  'libgnome-keyring: gnome keyring integration'
  )
source=(
  "git+https://github.com/QupZilla/qupzilla.git"
  "git+https://github.com/QupZilla/qupzilla-plugins.git"
  )
sha256sums=(SKIP SKIP)

pkgver() {
  cd "$_pkgname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}

build() {
  cd "$_pkgname"

  export QUPZILLA_PREFIX="/usr/"
  export QUPZILLA_SRCDIR="$srcdir/qupzilla"
  export QUPZILLA_PLUGINS_SRCDIR="$srcdir/qupzilla-plugins/plugins"

  export USE_WEBGL=true
  export KDE_INTEGRATION=true
  export GNOME_INTEGRATION=true

  qmake
  make
}

package() {
  cd "$_pkgname"
  make INSTALL_ROOT="$pkgdir/" install

  # zsh completion
  install -Dm644 linux/completion/_qupzilla "$pkgdir/usr/share/zsh/site-functions/_qupzilla"
}