blob: dd9a86a88c5f6d5cde3b6f27c8f367b7dd814616 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#Maintainer: m4sk1n <m4sk1n@vivaldi.net>
#Contributor: Christian Hesse <mail@eworm.de>
pkgname=otter-browser-git
pkgver=0.9.99.1.r1266.g97a464177
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.6' 'qt5-xmlpatterns>=5.6')
makedepends=('cmake' 'git' 'qt5-declarative>=5.6')
optdepends=('hunspell: 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
}
|