aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/otter-browser
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-04-18 09:57:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-04-18 12:34:34 +0000
commit289aecc6e6c194134f6df62fc5137a5d1500f4ad (patch)
treec7ee60d5a5c9d9806f87806999257be63e2b615c /unmaintained/otter-browser
parentdde8f653bdd219045357c71e32f511a995890672 (diff)
downloadaports-289aecc6e6c194134f6df62fc5137a5d1500f4ad.tar.bz2
aports-289aecc6e6c194134f6df62fc5137a5d1500f4ad.tar.xz
unmaintained/otter-browser: move as requested
Diffstat (limited to 'unmaintained/otter-browser')
-rw-r--r--unmaintained/otter-browser/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/unmaintained/otter-browser/APKBUILD b/unmaintained/otter-browser/APKBUILD
new file mode 100644
index 0000000000..81ef5e5d7f
--- /dev/null
+++ b/unmaintained/otter-browser/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Isaac Dunham <ibid.ag@gmail.com>
+# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
+pkgname=otter-browser
+# We build from the weekly releases.
+# Unfortunately, upstream version numbering is rather annoying:
+# they use <next-release>-dev<week>
+pkgver=0.9.05_pre56
+_pkgver=${pkgver/_pre/-dev}
+# Weekly releases may be in otter-browser-weekly<NN> or otter-browser-<release>
+_weekly=${pkgver/*_pre/weekly}
+
+pkgrel=0
+pkgdesc="Web browser controlled by the user, not vice-versa"
+url="http://otter-browser.org/"
+arch="all"
+license="GPL3"
+depends=""
+depends_dev=""
+makedepends="$depends_dev qt5-qtbase-dev qt5-qtwebkit-dev qt5-qtscript-dev
+ qt5-qtmultimedia-dev cmake libpng-dev jpeg-dev openssl-dev"
+install=""
+subpackages="$pkgname-lang"
+langdir="/usr/share/$pkgname/locale"
+source="http://downloads.sourceforge.net/otter-browser/otter-browser-${_weekly}/otter-browser-$_pkgver.tar.bz2"
+
+_builddir="$srcdir"/otter-browser-$_pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ mkdir build && cd build || return 1
+ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ../ && make || return 1
+}
+
+package() {
+ cd "$_builddir"/build || return 1
+ make install DESTDIR="$pkgdir" || return 1
+}
+
+md5sums="1cd0dd4e79907e07638c596c700cc7c0 otter-browser-0.9.05-dev56.tar.bz2"
+sha256sums="1bc0542cbc152e0d07a1f21acbee1a400cee25062db2be6989732f64e5ad4158 otter-browser-0.9.05-dev56.tar.bz2"
+sha512sums="3c427d50846b39e14c0d5a258ec3785b850b2426f93fa1b719f9442d0f11d687a4f82b0324521e6321538771521bd8cd9e5ebc895ed173bf491d32351edde2a4 otter-browser-0.9.05-dev56.tar.bz2"