mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
34 lines
956 B
Bash
34 lines
956 B
Bash
pkgname=otter-browser
|
|
pkgver=0.9.99
|
|
pkgrel=1
|
|
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-webengine' 'qt5-script' 'qt5-svg' 'hicolor-icon-theme' 'desktop-file-utils'
|
|
'sonnet' 'libgcrypt' 'hunspell' 'lcms2')
|
|
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=('f678b41ee1e50d38092b6f8e54cbb6aa3dfdc18f')
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
|
|
# Change DuckDuckGo's argument.
|
|
sed -i 's/?q={searchTerms}&/?q={searchTerms}&t=chakra&/g' resources/searchEngines/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
|
|
}
|