diff options
author | khai96_ | 2020-08-11 08:41:36 +0700 |
---|---|---|
committer | khai96_ | 2020-08-11 08:41:36 +0700 |
commit | 0efa98fb700500a5ae11e29e17dfe5f078d4ef38 (patch) | |
tree | 80303b287f1a78c83ed43ac4bb3b8da67b32b57d | |
parent | 6935eb6e90f9040f0cc703ed452a3c55af1ee417 (diff) | |
download | aur-0efa98fb700500a5ae11e29e17dfe5f078d4ef38.tar.gz |
Change to gnabel
-rw-r--r-- | .SRCINFO | 30 | ||||
-rw-r--r-- | PKGBUILD | 54 |
2 files changed, 52 insertions, 32 deletions
@@ -1,16 +1,18 @@ -pkgbase = miniserve-bin - pkgdesc = Tool to serve files via HTTP - pkgver = 0.8.0 - pkgrel = 1 - url = https://github.com/svenstaro/miniserve - arch = x86_64 - license = MIT - provides = miniserve - conflicts = miniserve - source = miniserve-0.8.0::https://github.com/svenstaro/miniserve/releases/download/v0.8.0/miniserve-v0.8.0-linux-x86_64 - source = https://github.com/svenstaro/miniserve/raw/v0.8.0/LICENSE +pkgbase = gnabel + pkgdesc = A translation app for GTK environments based on Google Translate + pkgver = 0.0.0 + pkgrel = 0 + url = https://github.com/gi-lom/gnabel + arch = any + license = GPL-3.0 + makedepends = xdg-utils + depends = python>=3 + depends = python-pyperclip + depends = python-gobject + depends = python-googletrans + depends = python-gtts + depends = python-pydub + source = https://github.com/gi-lom/gnabel/archive/57ff9c3d3631b04ddb8369e31ad2cfe46ec9099f.zip sha512sums = SKIP - sha512sums = SKIP - -pkgname = miniserve-bin +pkgname = gnabel @@ -1,25 +1,43 @@ # Maintainer: Hoàng Văn Khải <hvksmr1996@gmail.com> -pkgname=miniserve-bin -_pkgname=miniserve -pkgver=0.8.0 -pkgrel=1 -pkgdesc="Tool to serve files via HTTP" -provides=('miniserve') -conflicts=('miniserve') -arch=('x86_64') -url="https://github.com/svenstaro/miniserve" -license=(MIT) -source=( - miniserve-${pkgver}::${url}/releases/download/v${pkgver}/miniserve-v${pkgver}-linux-x86_64 - ${url}/raw/v${pkgver}/LICENSE +set -o errexit -o pipefail + +pkgname='gnabel' +pkgver='0.0.0' +pkgrel='0' +pkgdesc='A translation app for GTK environments based on Google Translate' +arch=('any') +depends=( + 'python>=3' + 'python-pyperclip' + 'python-gobject' + 'python-googletrans' # aur only + 'python-gtts' # aur only + 'python-pydub' # aur only ) -sha512sums=( - SKIP - SKIP +makedepends=( + 'xdg-utils' +) +url='https://github.com/gi-lom/gnabel' +license=('GPL-3.0') +_git_ref='57ff9c3d3631b04ddb8369e31ad2cfe46ec9099f' +source=( + "https://github.com/gi-lom/gnabel/archive/$_git_ref.zip" ) +sha512sums=('SKIP') package() { - install -Dm755 miniserve-${pkgver} "$pkgdir"/usr/bin/miniserve - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + cd "gnabel-$_git_ref" + + msg2 'Installing LICENSE' + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + msg2 'Installing executable' + install -Dm755 gnabel.py "$pkgdir/usr/bin/gnabel" + + msg2 'Installing desktop file' + install -Dm755 gnabel.desktop "$pkgdir/usr/share/applications/gnabel.desktop" + + msg2 'Installing icon' + install -Dm644 icon.png "$pkgdir/usr/share/icons/default/64x64/gnabel.png" } |