desktop/otter-browser/PKGBUILD

34 lines
960 B
Bash
Raw Normal View History

2016-03-26 03:51:03 +08:00
pkgname=otter-browser
pkgver=0.9.99.2
2017-10-02 16:51:34 +08:00
pkgrel=1
2016-03-26 03:51:03 +08:00
pkgdesc="Browser aiming to recreate classic Opera (12.x) UI using Qt5."
arch=('x86_64')
url="https://otter-browser.org/"
2016-03-26 03:51:03 +08:00
license=('GPL3')
2017-10-02 16:51:34 +08:00
depends=('qt5-multimedia' 'qt5-webkit' 'qt5-webengine' 'qt5-script' 'qt5-svg' 'hicolor-icon-theme' 'desktop-file-utils'
2018-01-02 12:06:37 +08:00
'sonnet' 'libgcrypt' 'hunspell' 'lcms2')
2016-03-26 03:51:03 +08:00
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=('a822c1a904c4e5df284b15e72a8c6f32c019a640')
2016-03-26 03:51:03 +08:00
prepare() {
cd $pkgname-$pkgver
# Change DuckDuckGo's argument.
2018-01-02 12:06:37 +08:00
sed -i 's/?q={searchTerms}&/?q={searchTerms}&t=chakra&/g' resources/searchEngines/duckduckgo.xml
}
2016-03-26 03:51:03 +08:00
build() {
cd $pkgname-$pkgver
lrelease-qt5 resources/translations/*.ts
2016-03-26 03:51:03 +08:00
cmake -DCMAKE_INSTALL_PREFIX="/usr"
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
}