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

Felix Yan felixonmars at gemini.archlinux.org
Fri Dec 3 00:40:41 UTC 2021


    Date: Friday, December 3, 2021 @ 00:40:40
  Author: felixonmars
Revision: 1063948

archrelease: copy trunk to community-staging-any

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

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

Copied: ydcv/repos/community-staging-any/PKGBUILD (from rev 1063946, ydcv/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-03 00:40:40 UTC (rev 1063948)
@@ -0,0 +1,24 @@
+# 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.7
+pkgrel=5
+arch=("any")
+url="https://github.com/felixonmars/ydcv"
+license=("GPL")
+depends=('python')
+makedepends=('python-setuptools-scm' 'python-setuptools-markdown')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/felixonmars/$pkgname/archive/$pkgver.tar.gz")
+sha512sums=('04277b2cc586bf19b0cd8cb52c0287ac75b235f72cbab19358a962f14de74f042cc90da1ec7ded06e3ce07a4694a6511599ce9213485ed0e4d40a84d296663bf')
+
+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