#Maintainer: m4sk1n #Contributor: Christian Hesse pkgname=otter-browser-git pkgver=0.9.12.r893.gd9321945 pkgrel=1 pkgdesc='Browser aiming to recreate the best aspects of the classic Opera (12.x) UI using Qt5 - git checkout' arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64') url='http://otter-browser.org/' license=('GPL3') provides=('otter-browser') conflicts=('otter-browser') depends=( 'qt5-webkit' 'qt5-multimedia>=5.4' 'qt5-xmlpatterns>=5.4') makedepends=('cmake' 'git' 'qt5-declarative>=5.4' 'icu58') optdepends=('hunspell>=1.3.0: for spell checking' 'qt5-webengine: for experimental backend using the Chromium browser project') source=('git://github.com/OtterBrowser/otter-browser.git') sha256sums=('SKIP') pkgver() { cd otter-browser/ if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")" else echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")" fi } build() { mkdir -p otter-browser/build/ cd otter-browser/build/ cmake -DCMAKE_INSTALL_PREFIX="/usr" ../ make } package() { cd otter-browser/ install -D -m0644 COPYING ${pkgdir}/usr/share/licenses/otter-browser/COPYING cd build/ make DESTDIR=${pkgdir} install }