summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorWinícius Iago Vieira Cota2020-12-24 14:34:28 -0300
committerWinícius Iago Vieira Cota2020-12-24 14:34:28 -0300
commitc312ed6ad14628c8e225040aadd1602cd996f99d (patch)
tree67e5f8601b90b4255d317a91dc37f56902b41346 /PKGBUILD
downloadaur-rofi-translate-git.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..72c6d7c95f4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Winícius Cota <winicius.cota@gmail.com>
+
+_pkgname=rofi-translate
+pkgname="${_pkgname}-git"
+pkgver=r28.84356fd
+pkgrel=1
+pkgdesc='Simple rofi script for translation based on translate shell'
+arch=('any')
+url='https://github.com/garyparrot/rofi-translate'
+license=('MIT')
+depends=('translate-shell' 'rofi' 'mplayer')
+makedepends=('git')
+source=("git+$url" 'default-language.patch')
+md5sums=('SKIP' '1bef53ea756773942ed2788a425b2a8c')
+
+pkgver() {
+ cd "${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd $srcdir/$_pkgname
+ patch -p1 -i "$srcdir/default-language.patch"
+}
+
+package() {
+ install -Dm755 ${_pkgname}/rofi_trans "${pkgdir}/usr/bin/rofi_trans"
+ install -Dm755 ${_pkgname}/rofi_trans_brief "${pkgdir}/usr/bin/rofi_trans_brief"
+ install -Dm755 ${_pkgname}/rofi_trans_delete "${pkgdir}/usr/bin/rofi_trans_delete"
+ install -Dm755 ${_pkgname}/rofi_trans_verbose "${pkgdir}/usr/bin/rofi_trans_verbose"
+ install -Dm755 ${_pkgname}/rofi_verbose "${pkgdir}/usr/bin/rofi_verbose"
+}