diff --git a/.gitignore b/.gitignore index bd91a4967..7b1854111 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ __pycache__ /build /dist /qutebrowser.egg-info +/pkg/pkg +/pkg/qutebrowser +/pkg/src diff --git a/pkg/PKGBUILD.qutebrowser-git b/pkg/PKGBUILD.qutebrowser-git new file mode 100644 index 000000000..4ed3a0c57 --- /dev/null +++ b/pkg/PKGBUILD.qutebrowser-git @@ -0,0 +1,26 @@ +# Maintainer: Florian Bruhin (The Compiler) + +pkgname=qutebrowser-git +pkgver= +pkgrel=1 +pkgdesc="A keyboard-driven, vim-like browser based on PyQt5 and QtWebKit.", +arch=(any) +url="http://www.qutebrowser.org/" +license=('GPL') +depends=('python' 'python-setuptools' 'python-appdirs' 'python-pyqt5' 'qt5-base' 'qt5-webkit') +makedepends=('python' 'python-setuptools') +options=(!emptydirs) +source=('qutebrowser::git://the-compiler.org/qutebrowser') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/qutebrowser" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$srcdir/qutebrowser" + python setup.py install --root="$pkgdir/" --optimize=1 +} + +# vim:set ts=2 sw=2 et: