desktop/qupzilla/PKGBUILD

53 lines
1.7 KiB
Bash
Raw Normal View History

2014-01-02 08:53:44 +08:00
# Contributor: Anke Boersma <abveritas@chakra-project.org>
# Maintainer: Bruce Liu <brli@users.sourceforge.net>
2014-05-13 09:12:01 +08:00
_pkgname=QupZilla
2011-10-18 04:35:31 +08:00
pkgname=qupzilla
2014-05-13 09:12:01 +08:00
pkgver=1.6.6
pkgrel=1
2011-10-18 04:35:31 +08:00
pkgdesc="A very fast open source browser based on WebKit core"
2012-02-02 10:07:43 +08:00
url="http://www.qupzilla.com"
arch=('x86_64')
2011-10-18 04:35:31 +08:00
license=('GPL3')
2014-01-07 23:04:11 +08:00
depends=('qtwebkit' 'qtwebkit-plugins' 'kdelibs')
2013-09-02 15:44:49 +08:00
optdepends=('bash-completion: bash completion support')
2012-04-25 01:04:25 +08:00
categories=('network')
2013-09-02 15:44:49 +08:00
install=${pkgname}.install
screenshot='http://www.qupzilla.com/screens/kde.png'
2014-05-13 09:12:01 +08:00
source=("https://github.com/QupZilla/qupzilla/releases/download/v${pkgver}/${_pkgname}-${pkgver}.tar.xz"
2014-01-02 08:53:44 +08:00
'qupzilla.patch'
2014-04-16 01:36:49 +08:00
'theme-app-icon.patch'
2014-01-07 23:58:37 +08:00
'start-white.png')
2014-05-13 09:12:01 +08:00
sha1sums=('a2d5fb4ad860b9cd5e5cfc74b22d1fbbd3a8b566'
'6c0450b4684d3a001ee5c7f601ba82e35b7db945'
2014-04-19 03:20:18 +08:00
'a782a0ee5191ce5e0177ff5b9f1d55c248b829ea'
'6ec67993bda3054d4210cc08177b124f873774e3')
2011-10-18 04:35:31 +08:00
2013-09-02 15:44:49 +08:00
prepare() {
2014-05-13 09:12:01 +08:00
cd "${srcdir}/${_pkgname}-${pkgver}/src/lib"
2014-04-16 01:36:49 +08:00
patch -uNp1 -i ${srcdir}/qupzilla.patch
## note that the following patches are backward patch, should be removed at next(>1.6.x) release
2014-04-16 01:36:49 +08:00
patch -p3 -i ${srcdir}/theme-app-icon.patch
}
2013-09-02 15:44:49 +08:00
2011-10-18 04:35:31 +08:00
build() {
2013-09-02 15:44:49 +08:00
export USE_WEBGL="true"
2014-01-07 23:04:11 +08:00
export KDE_INTEGRATION="true"
2013-09-02 15:44:49 +08:00
2014-05-13 09:12:01 +08:00
cd "${srcdir}/${_pkgname}-${pkgver}/"
qmake
2013-09-02 15:44:49 +08:00
make
2011-10-18 04:35:31 +08:00
}
package() {
2014-05-13 09:12:01 +08:00
cd "${srcdir}/${_pkgname}-${pkgver}/"
2013-09-02 15:44:49 +08:00
make INSTALL_ROOT="${pkgdir}" install
install -Dm 644 "${srcdir}/start-white.png" "${pkgdir}/usr/share/icons/start-white.png"
2013-09-02 15:44:49 +08:00
2014-01-02 08:53:44 +08:00
# shell completion
install -Dm644 linux/completion/_${pkgname} "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
install -Dm644 linux/completion/${pkgname} "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
}