diff options
author | Ivan Tham <pickfire@riseup.net> | 2017-03-04 14:14:32 +0800 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-03-10 09:21:29 +0000 |
commit | 369654629c09a5bacfec85c6ed750884ccf180cd (patch) | |
tree | d2f35d8f2e4589bb2935d51bca9816b140afcacd /testing/ydcv | |
parent | d2ab8972ad5d3bd53385c5201f0a4ff6b85b7ed4 (diff) | |
download | aports-369654629c09a5bacfec85c6ed750884ccf180cd.tar.bz2 aports-369654629c09a5bacfec85c6ed750884ccf180cd.tar.xz |
testing/ydcv: new aport
https://github.com/felixonmars/ydcv
YouDao Console Version - Chinese online translate
Diffstat (limited to 'testing/ydcv')
-rw-r--r-- | testing/ydcv/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/ydcv/APKBUILD b/testing/ydcv/APKBUILD new file mode 100644 index 0000000000..f713d093a9 --- /dev/null +++ b/testing/ydcv/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Ivan Tham <pickfire@riseup.net> +# Maintainer: Ivan Tham <pickfire@riseup.net> +pkgname=ydcv +pkgver=0.4 +pkgrel=0 +pkgdesc="YouDao Console Version - Chinese online translate" +url="https://github.com/felixonmars/ydcv" +arch="noarch" +license="GPL" +depends="" # TODO: Either python2 or python3 is needed +subpackages="$pkgname-zsh-completion:zshcomp" +source="$pkgname-$pkgver.tar.gz::https://github.com/felixonmars/${pkgname}/archive/${pkgver}.tar.gz" +options="!check" +builddir="$srcdir/"$pkgname-$pkgver + +package() { + mkdir -p "$pkgdir"/usr/bin/$pkgname + install -Dm755 "$builddir"/ydcv.py \ + "$pkgdir"/usr/bin/$pkgname || return 1 + +} + +zshcomp() { + pkgdesc="Zsh completions for $pkgname" + depends="" + install_if="$pkgname=$pkgver-r$pkgrel zsh" + + mkdir -p "$subpkgdir"/usr/share/zsh/site-functions/ + install -Dm644 "$builddir"/contrib/zsh_completion \ + "$subpkgdir"/usr/share/zsh/site-functions/_$pkgname || return 1 +} + +sha512sums="96c19ab8496159c90ef634533cd2f4e0a3d8a85449ae988ef0cb4d4d73e106b6383ad8c4eef5bdd0e9c7ae07db3ba2cf20112c8fa34d9487786d0cd4744f9bf3 ydcv-0.4.tar.gz" |