[arch-commits] Commit in qupzilla/trunk (PKGBUILD)
speps
speps at nymeria.archlinux.org
Sun Dec 22 05:00:21 UTC 2013
Date: Sunday, December 22, 2013 @ 06:00:20
Author: speps
Revision: 102849
upgpkg: qupzilla 1.4.4-1
Modified:
qupzilla/trunk/PKGBUILD
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++------------
1 file changed, 41 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-12-22 04:29:02 UTC (rev 102848)
+++ PKGBUILD 2013-12-22 05:00:20 UTC (rev 102849)
@@ -1,7 +1,8 @@
# $Id$
# Maintainer: speps <speps at aur dot archlinux dot org>
-pkgname=qupzilla
+pkgbase=qupzilla
+pkgname=(qupzilla qupzilla-qt5)
pkgver=1.4.4
pkgrel=1
pkgdesc="Cross-platform QtWebKit browser"
@@ -8,29 +9,57 @@
arch=(i686 x86_64)
url="http://www.qupzilla.com/"
license=('GPL3')
-depends=('qtwebkit' 'hunspell')
+makedepends=('qtwebkit' 'qt5-webkit' 'qt5-script' 'hunspell')
optdepends=('bash-completion: bash completion support')
-install="$pkgname.install"
-source=("$pkgname-$pkgver.tar.gz::https://github.com/QupZilla/$pkgname/tarball/v$pkgver")
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/QupZilla/$pkgbase/tarball/v$pkgver")
+noextract=("$pkgbase-$pkgver.tar.gz")
+install="$pkgbase.install"
md5sums=('cfbf5cd23d184275c389c79a39a28631')
-build() {
- cd "$srcdir/QupZilla-$pkgname-"*
+prepare() {
+ # extract
+ mkdir -p qt{4,5}
+ bsdtar --strip-components 1 -zxf $pkgbase-$pkgver.tar.gz -C qt4
+ bsdtar --strip-components 1 -zxf $pkgbase-$pkgver.tar.gz -C qt5
- # enable webgl support
- export USE_WEBGL=true
+ # configure
+ export USE_WEBGL=true \
+ QUPZILLA_PREFIX=/usr/
+}
- qmake-qt4 QUPZILLA_PREFIX=/usr/
+build() {
+ cd qt4
+ qmake-qt4
make
+
+ cd ../qt5
+ qmake
+ make
}
-package() {
- cd "$srcdir/QupZilla-$pkgname-"*
+package_qupzilla() {
+ depends=('qtwebkit' 'hunspell')
+
+ cd qt4
make INSTALL_ROOT="$pkgdir/" install
# zsh completion
install -Dm644 linux/completion/zsh_completion.sh \
- "$pkgdir/usr/share/zsh/site-functions/_$pkgname"
+ "$pkgdir/usr/share/zsh/site-functions/_$pkgbase"
}
+package_qupzilla-qt5() {
+ pkgdesc+=" (Qt5)"
+ depends=('qt5-webkit' 'qt5-script' 'hunspell' 'desktop-file-utils' 'hicolor-icon-theme')
+ provides=('qupzilla')
+ conflicts=('qupzilla')
+
+ cd qt5
+ make INSTALL_ROOT="$pkgdir/" install
+
+ # zsh completion
+ install -Dm644 linux/completion/zsh_completion.sh \
+ "$pkgdir/usr/share/zsh/site-functions/_$pkgbase"
+}
+
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list