summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcamusecao2021-11-15 13:33:06 +0800
committercamusecao2021-11-15 13:33:06 +0800
commitdd82f0ec2c0860759fb5a9d2d4c4c3a5b17ae35f (patch)
tree54b186af33de9eeedd3e538fdec4367f9b24da11
parentc9bd469a3ced66c7267190809950089b10bb5bb0 (diff)
downloadaur-dd82f0ec2c0860759fb5a9d2d4c4c3a5b17ae35f.tar.gz
update for 0.5.0
-rwxr-xr-x[-rw-r--r--].SRCINFO11
-rwxr-xr-xPKGBUILD27
2 files changed, 21 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ea58ab0567c..afe90c11a00 100644..100755
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = cutetranslation-flameshot
pkgdesc = flameshot 截图版的 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,12 +14,13 @@ pkgbase = cutetranslation-flameshot
depends = nodejs
depends = qt5-multimedia
depends = flameshot
+ depends = qt5-declarative
+ depends = libxtst
optdepends = libxtst
conflicts = cutetranslation
- source = https://github.com/jiangzc/CuteTranslation/archive/v0.4.3-2.tar.gz
+ source = https://github.com/jiangzc/CuteTranslation/archive/v0.5.0.tar.gz
source = cutetranslation.desktop
- md5sums = 218ec0212bd656ea3d175fd29b6f2db0
+ md5sums = 4effa5806d1f7ebd263590c84ee0b966
md5sums = 53dc6fbd71cc3e365405d42820ea9ab5
pkgname = cutetranslation-flameshot
-
diff --git a/PKGBUILD b/PKGBUILD
index 73306f2f28b..392da087b55 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,41 +1,44 @@
# Maintainer: CamuseCao camusecao@gmail.com
pkgname=cutetranslation-flameshot
-pkgver=0.4.3
-pkgrel=2
+pkgver=0.5.0
+pkgrel=1
pkgdesc="flameshot 截图版的 Linux 系统上基于 X11 的一款取词翻译软件,帮助用户翻译多种语言的文字。"
arch=('x86_64')
url="https://github.com/jiangzc/CuteTranslation"
license=('GPL3')
-depends=('tidy' 'nodejs' 'qt5-multimedia' 'flameshot')
+depends=('tidy' 'nodejs' 'qt5-multimedia' 'flameshot' 'qt5-declarative' 'libxtst')
makedepends=('git' 'xcb-util' 'qt5-base' 'qt5-x11extras' 'qt5-multimedia')
optdepends=('libxtst')
conflicts=('cutetranslation')
replaces=()
backup=()
-source=("$url/archive/v$pkgver-$pkgrel.tar.gz" "cutetranslation.desktop")
-md5sums=('218ec0212bd656ea3d175fd29b6f2db0'
+# source=("$url/archive/v$pkgver-$pkgrel.tar.gz" "cutetranslation.desktop")
+source=("$url/archive/v$pkgver.tar.gz" "cutetranslation.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
-sed -i 's%gnome-screenshot%flameshot%g' $srcdir/CuteTranslation-$pkgver-$pkgrel/src/main.cpp
-sed -i 's%gnome-screenshot -a -f /tmp/ocr > /dev/null 2>&1%flameshot gui \-r > /tmp/ocr%g' $srcdir/CuteTranslation-$pkgver-$pkgrel/template/screenshot.sh
+# sed -i 's%gnome-screenshot%flameshot%g' $srcdir/CuteTranslation-$pkgver-$pkgrel/src/main.cpp
+# sed -i 's%gnome-screenshot -a -f /tmp/ocr > /dev/null 2>&1%flameshot gui \-r > /tmp/ocr%g' $srcdir/CuteTranslation-$pkgver-$pkgrel/template/screenshot.sh
+sed -i 's%gnome-screenshot%flameshot%g' $srcdir/CuteTranslation-$pkgver/src/main.cpp
+sed -i 's%gnome-screenshot -a -f /tmp/ocr > /dev/null 2>&1%flameshot gui \-r > /tmp/ocr%g' $srcdir/CuteTranslation-$pkgver/template/screenshot.sh
# flameshot gui \-r >
}
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/cutetranslation.desktop $pkgdir/usr/share/applications/cutetranslation.desktop
- install -D ./template/* -t ${pkgdir}/opt/CuteTranslation
+ install -D ./template/* -t ${pkgdir}/opt/CuteTranslationq
}