summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigorii Horos2015-12-20 22:55:03 +0200
committerGrigorii Horos2015-12-20 22:55:03 +0200
commit60e2ee3bd524ef45b191b55fa4e6ad13c377fda8 (patch)
tree2855c99c01f538ef51cc647ecec71871872a2915
parentaab3ca34ddceb0c19bf229ec6e2279e1fff90778 (diff)
downloadaur-60e2ee3bd524ef45b191b55fa4e6ad13c377fda8.tar.gz
Add depends
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD8
-rwxr-xr-xtranslateselection2
3 files changed, 11 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9ea94009ed89..5b1bcd6d5957 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,9 @@
+# Generated by mksrcinfo v8
+# Sun Dec 20 20:54:48 UTC 2015
pkgbase = kde-select-and-translate
pkgdesc = Select text and press Alt+Z for translate using Google Translate
- pkgver = 20151010
- pkgrel = 3
+ pkgver = 20151222
+ pkgrel = 1
url = https://github.com/horosgrisa/kde-select-and-translate
arch = any
license = MIT
@@ -9,11 +11,12 @@ pkgbase = kde-select-and-translate
depends = xsel
depends = libnotify
depends = curl
+ depends = translate-shell-git
options = !strip
source = translateselection
source = select-and-translate.khotkeys
source = LICENSE
- sha256sums = 6190d53833f95632071962434c81a6ddd268ba83749bfc034a2f9da14cd9aeee
+ sha256sums = 047585e0d652f75c2c173ca69eec7b3f1f44b47347f1a53fe44f3acf58ad43d0
sha256sums = ce7f64ac60114bc119643a798e8a345ba4172b31780a8dff31c259f3e2227c1d
sha256sums = 1b7eb2d32c4613218a028772370e04720d028f7558f66c6d32cc3037cd72651b
diff --git a/PKGBUILD b/PKGBUILD
index f774a1a6cadf..56dcf8e20c9b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,16 @@
# Maintainer: Grigorii Horos <horosgrisa@gmail.com>
pkgname=kde-select-and-translate
-pkgver=20151010
-pkgrel=3
+pkgver=20151222
+pkgrel=1
pkgdesc="Select text and press Alt+Z for translate using Google Translate"
arch=('any')
url="https://github.com/horosgrisa/${pkgname}"
license=('MIT')
-depends=('plasma-framework' 'xsel' 'libnotify' 'curl')
+depends=('plasma-framework' 'xsel' 'libnotify' 'curl' 'translate-shell-git')
options=('!strip')
source=("translateselection" "select-and-translate.khotkeys" "LICENSE")
-sha256sums=('6190d53833f95632071962434c81a6ddd268ba83749bfc034a2f9da14cd9aeee' 'ce7f64ac60114bc119643a798e8a345ba4172b31780a8dff31c259f3e2227c1d' '1b7eb2d32c4613218a028772370e04720d028f7558f66c6d32cc3037cd72651b')
+sha256sums=('047585e0d652f75c2c173ca69eec7b3f1f44b47347f1a53fe44f3acf58ad43d0' 'ce7f64ac60114bc119643a798e8a345ba4172b31780a8dff31c259f3e2227c1d' '1b7eb2d32c4613218a028772370e04720d028f7558f66c6d32cc3037cd72651b')
package() {
install -d ${pkgdir}/usr/share/khotkeys
diff --git a/translateselection b/translateselection
index ccc03d576193..36b5f1321056 100755
--- a/translateselection
+++ b/translateselection
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
-notify-send -i "applications-education-language" -u critical "$(xsel -o)" "$(curl -s -X POST -A "Mozilla/5.0" -H "Content-Type: application/x-www-form-urlencoded" -d "client=t" -d "sl=auto" -d "tl=$LANGUAGE" -d "text=$(xsel -o | sed "s/[\"'<>]//g")" 'http://www.google.com/translate_a/t' | sed 's/\[\[\[\"//' | cut -d \" -f 1)" \ No newline at end of file
+notify-send -i "applications-education-language" -u critical "$(xsel -o)" "$(trans -b "$(xsel -o | sed "s/[\"'<>]//g")")" \ No newline at end of file