summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorShatur952020-06-30 02:09:24 +0300
committerShatur952020-06-30 02:09:24 +0300
commit0bd8163f3d1dd6a7a4209febe9aa43b2552f561f (patch)
treee84501725e74a8091892a1830fd790ec63e6277d
parentff06e12146c95773f670b527f1a16334401e5aef (diff)
downloadaur-0bd8163f3d1dd6a7a4209febe9aa43b2552f561f.tar.gz
Update to 2.4.0
-rwxr-xr-xPKGBUILD44
1 files changed, 24 insertions, 20 deletions
diff --git a/PKGBUILD b/PKGBUILD
index bce6f690a26..d17f074c4f7 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,14 @@
# Maintainer: Shatur95 <genaloner@gmail.com>
# Submodule versions
-_qonlinetranslator=1.2.3
-_qhotkey=1.3.0
-_qtaskbarcontrol=2.0.0
-_singleapplication=3.0.19
+_qonlinetranslator=1.2.4
+_qhotkey=1.4.0
+_qtaskbarcontrol=2.0.1
+_singleapplication=3.1.3.1
pkgname=crow-translate
-pkgver=2.3.2
-pkgrel=3
+pkgver=2.4.0
+pkgrel=1
pkgdesc='A simple and lightweight translator that allows to translate and say selected text using Google, Yandex and Bing translate API'
arch=(x86_64)
url=https://github.com/crow-translate/crow-translate
@@ -20,27 +20,31 @@ source=($pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz
QHotkey-$_qhotkey.tar.gz::https://github.com/Skycoder42/QHotkey/archive/$_qhotkey.tar.gz
QTaskbarControl-$_qtaskbarcontrol.tar.gz::https://github.com//Skycoder42/QTaskbarControl/archive/$_qtaskbarcontrol.tar.gz
SingleApplication-$_singleapplication.tar.gz::https://github.com/itay-grudev/SingleApplication/archive/v$_singleapplication.tar.gz)
-sha256sums=(4dbaffbc9c9e78e0920695ff21115cf99c5bc7b1afa693bb6b7d364dcc856610
- 20cc2736f6dec3a376b6746525076de2760e997085fb3d3f2776f0ce5b676182
- d21867b4f15a67c03d26c960da864a63368ccdf7da2dfaa545c135aad506085e
- 85039ca8ff899ed724ed16b719be7a814392a67ad53b4b59f160f73fb53dc74c
- 9405fd259288b2a862e91e5135bccee936f0438e1b32c13603277132309d15e0)
+sha256sums=(52bb971e04a3f26b1ab8af87ab450e71de8bf791cfb9396a967e50da8dbb3910
+ 2d1839aecc0e5a540941aa65653a4d5edad24f73771cef8dd564304b131671bf
+ 5694f0b35b8051a1d68a2172081f0698bf72aba7f350740d2c6a3fe7de4b0ae3
+ b2f956bdc5fdba1477ca7f4bde9759a120055407e4a7cc0c9efbc3934ae72b01
+ bbc20faa3e914cda8fe94b5d0bf98af640d3298a791a16cad4571a9ccbf1d030)
# Move submodules into the project
prepare() {
- mv QOnlineTranslator-$_qonlinetranslator/* $pkgname-$pkgver/src/qonlinetranslator
- mv QHotkey-$_qhotkey/* $pkgname-$pkgver/src/third-party/qhotkey
- mv QTaskbarControl-$_qtaskbarcontrol/* $pkgname-$pkgver/src/third-party/qtaskbarcontrol
- mv SingleApplication-$_singleapplication/* $pkgname-$pkgver/src/third-party/singleapplication
+ mv QOnlineTranslator-$_qonlinetranslator/* $pkgname-$pkgver/src/qonlinetranslator
+ mv QHotkey-$_qhotkey/* $pkgname-$pkgver/src/third-party/qhotkey
+ mv QTaskbarControl-$_qtaskbarcontrol/* $pkgname-$pkgver/src/third-party/qtaskbarcontrol
+ mv SingleApplication-$_singleapplication/* $pkgname-$pkgver/src/third-party/singleapplication
}
build() {
- cd $pkgname-$pkgver
- qmake
- make
+ mkdir -p $pkgname-$pkgver/build
+ cd $pkgname-$pkgver/build
+
+ cmake -D CMAKE_INSTALL_PREFIX="$pkgdir/usr" ..
+ cmake --build .
}
package() {
- cd $pkgname-$pkgver
- make INSTALL_ROOT="$pkgdir/" install
+ cd $pkgname-$pkgver/build
+
+ cmake --install .
+ rm -f "${pkgdir}/usr/share/icons/hicolor/icon-theme.cache"
}