Skip to content

Instantly share code, notes, and snippets.

@anexation
Created December 8, 2014 08:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anexation/b02e6a0e8c178b8d4ee2 to your computer and use it in GitHub Desktop.
Save anexation/b02e6a0e8c178b8d4ee2 to your computer and use it in GitHub Desktop.
PKGBUILD
# Mantainer: sxe <sxxe@gmx.de>
pkgname=qupzilla-git
pkgver=20131103
pkgrel=1
pkgdesc="A new and very fast open source browser based on WebKit core, written in Qt Framework."
arch=('i686' 'x86_64')
url="http://www.qupzilla.com"
license=('GPL')
depends=( 'qt4' 'qtwebkit')
makedepends=('git')
provides=('qupzilla')
conflicts=('qupzilla')
source=()
md5sums=()
_gitroot="https://github.com/QupZilla/qupzilla.git"
_gitname="qupzilla"
build() {
cd $srcdir
msg "Connecting to github.com GIT server...."
if [ -d ${srcdir}/$_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot
fi
msg "Starting make..."
if [ -d ${srcdir}/${_gitname}-build ]; then
rm -rf ${srcdir}/${_gitname}-build
fi
cp -r ${srcdir}/$_gitname ${srcdir}/${_gitname}-build
cd ${srcdir}/${_gitname}-build
export USE_WEBGL="true"
export KDE_INTEGRATION="true"
export QUPZILLA_PREFIX="/usr/"
qmake-qt4
make clean
make
}
package() {
cd ${srcdir}/${_gitname}-build
make INSTALL_ROOT="$pkgdir/" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment