[arch-commits] Commit in ydcv/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Jul 23 15:34:11 UTC 2018


    Date: Monday, July 23, 2018 @ 15:34:11
  Author: felixonmars
Revision: 363035

archrelease: copy trunk to community-staging-any

Added:
  ydcv/repos/community-staging-any/
  ydcv/repos/community-staging-any/PKGBUILD
    (from rev 363034, ydcv/trunk/PKGBUILD)

----------+
 PKGBUILD |   27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

Copied: ydcv/repos/community-staging-any/PKGBUILD (from rev 363034, ydcv/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-23 15:34:11 UTC (rev 363035)
@@ -0,0 +1,27 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor : Fernando "Firef0x" G.P. da Silva <firefgx { aT ) gmail [ d0t } com>
+
+pkgname=ydcv
+pkgdesc="YouDao Console Version - Simple wrapper for Youdao online translate (Chinese <-> English) service API, as an alternative to the StarDict Console Version (sdcv)"
+pkgver=0.5
+pkgrel=2
+arch=("any")
+url="https://github.com/felixonmars/ydcv"
+license=("GPL")
+depends=('python-setuptools')
+makedepends=('python-setuptools-scm' 'python-setuptools-markdown')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/felixonmars/$pkgname/archive/$pkgver.tar.gz")
+sha512sums=('6142a09f5afef0cff28c817e8210cece30dc0bbec85b8ac5a3c1454ce83b2963c06a8c1fd1f693fd57662a54d1d216531819e455aa95191a78453c4386cbd3ac')
+
+prepare() {
+  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+}
+
+package() {
+  cd $pkgname-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 contrib/zsh_completion "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list