desktop/otter-browser/PKGBUILD

33 lines
857 B
Bash

pkgname=otter-browser
pkgver=0.9.09
pkgrel=2
pkgdesc="Browser aiming to recreate classic Opera (12.x) UI using Qt5."
arch=('x86_64')
url="http://otter-browser.org"
license=('GPL3')
depends=('qt5-multimedia' 'qt5-webkit' 'qt5-script' 'hicolor-icon-theme' 'desktop-file-utils' 'sonnet')
makedepends=('cmake' 'qt5-tools')
conflicts=('otter-browser-git')
install=otter.install
source=($pkgname-$pkgver.tar.gz::https://github.com/OtterBrowser/$pkgname/archive/v$pkgver.tar.gz)
sha1sums=('f0ee5031f09243d5c78cd638d95655b04fada05c')
prepare() {
cd $pkgname-$pkgver
# Change DuckDuckGo's argument.
sed -i 's/canonical/chakra/g' resources/searches/duckduckgo.xml
}
build() {
cd $pkgname-$pkgver
lrelease-qt5 resources/translations/*.ts
cmake -DCMAKE_INSTALL_PREFIX="/usr"
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
}