summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcamusecao2021-11-15 13:40:30 +0800
committercamusecao2021-11-15 13:40:30 +0800
commitceda94990447276c308b72e65b7f6a6ef79a1920 (patch)
tree9a6749deca94be741cfad48b29df89d4f03fe71c
parent3854c8d0d930cf068f3e0d3da44ee217b60c68fa (diff)
downloadaur-ceda94990447276c308b72e65b7f6a6ef79a1920.tar.gz
update for 0.5.0
-rwxr-xr-x[-rw-r--r--].SRCINFO12
-rwxr-xr-xPKGBUILD29
2 files changed, 22 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6834431aa19..87b738a943b 100644..100755
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = cutetranslation
pkgdesc = Linux 系统上基于 X11 的一款取词翻译软件,帮助用户翻译多种语言的文字。
- pkgver = 0.4.3
- pkgrel = 2
+ pkgver = 0.5.0
+ pkgrel = 1
url = https://github.com/jiangzc/CuteTranslation
arch = x86_64
license = GPL3
@@ -14,11 +14,11 @@ pkgbase = cutetranslation
depends = nodejs
depends = qt5-multimedia
depends = gnome-screenshot
- optdepends = libxtst
- source = https://github.com/jiangzc/CuteTranslation/archive/v0.4.3-2.tar.gz
+ depends = qt5-declarative
+ depends = libxtst
+ source = https://github.com/jiangzc/CuteTranslation/archive/v0.5.0.tar.gz
source = cutetranslation.desktop
- md5sums = 218ec0212bd656ea3d175fd29b6f2db0
+ md5sums = 4effa5806d1f7ebd263590c84ee0b966
md5sums = 53dc6fbd71cc3e365405d42820ea9ab5
pkgname = cutetranslation
-
diff --git a/PKGBUILD b/PKGBUILD
index ba6e48beafc..6d5b630d702 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,35 +1,38 @@
# Maintainer: CamuseCao camusecao@gmail.com
pkgname=cutetranslation
-pkgver=0.4.3
-pkgrel=2
+pkgver=0.5.0
+pkgrel=1
pkgdesc="Linux 系统上基于 X11 的一款取词翻译软件,帮助用户翻译多种语言的文字。"
arch=('x86_64')
url="https://github.com/jiangzc/CuteTranslation"
license=('GPL3')
-depends=('tidy' 'nodejs' 'qt5-multimedia' 'gnome-screenshot')
+depends=('tidy' 'nodejs' 'qt5-multimedia' 'gnome-screenshot' 'qt5-declarative' 'libxtst')
makedepends=('git' 'xcb-util' 'qt5-base' 'qt5-x11extras' 'qt5-multimedia')
-# 'libxtst'
-optdepends=('libxtst')
+
+# optdepends=('libxtst')
conflicts=()
replaces=()
backup=()
-source=("$url/archive/v$pkgver-$pkgrel.tar.gz" "$pkgname.desktop")
-md5sums=('218ec0212bd656ea3d175fd29b6f2db0'
+# source=("$url/archive/v$pkgver-$pkgrel.tar.gz" "$pkgname.desktop")
+source=("$url/archive/v$pkgver.tar.gz" "$pkgname.desktop")
+md5sums=('4effa5806d1f7ebd263590c84ee0b966'
'53dc6fbd71cc3e365405d42820ea9ab5')
-prepare() {
-sed -i '19a\#include <QPainterPath>' $srcdir/CuteTranslation-$pkgver-$pkgrel/src/mainwindow.cpp
-sed -i 's/ nodejs.start("nodejs", args);/ nodejs.start("node", args);/g' $srcdir/CuteTranslation-$pkgver-$pkgrel/src/baidutranslate.cpp
-}
+# prepare() {
+# sed -i '19a\#include <QPainterPath>' $srcdir/CuteTranslation-$pkgver-$pkgrel/src/mainwindow.cpp
+# sed -i 's/ nodejs.start("nodejs", args);/ nodejs.start("node", args);/g' $srcdir/CuteTranslation-$pkgver-$pkgrel/src/baidutranslate.cpp
+# }
build() {
- cd $srcdir/CuteTranslation-$pkgver-$pkgrel
+# cd $srcdir/CuteTranslation-$pkgver-$pkgrel
+ cd $srcdir/CuteTranslation-$pkgver
mkdir -p build && cd build
qmake ../ && make
}
package() {
- cd $srcdir/CuteTranslation-$pkgver-$pkgrel
+# cd $srcdir/CuteTranslation-$pkgver-$pkgrel
+ cd $srcdir/CuteTranslation-$pkgver
cp ./build/CuteTranslation ./template
install -Dm644 ./template/CuteTranslation.svg ${pkgdir}/usr/share/icons/CuteTranslation.svg
install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop