[arch-commits] Commit in ydcv/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Nov 12 18:58:59 UTC 2020
Date: Thursday, November 12, 2020 @ 18:58:59
Author: felixonmars
Revision: 753295
archrelease: copy trunk to community-staging-any
Added:
ydcv/repos/community-staging-any/
ydcv/repos/community-staging-any/PKGBUILD
(from rev 753294, ydcv/trunk/PKGBUILD)
----------+
PKGBUILD | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
Copied: ydcv/repos/community-staging-any/PKGBUILD (from rev 753294, ydcv/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-12 18:58:59 UTC (rev 753295)
@@ -0,0 +1,26 @@
+# 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=3
+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=('04277b2cc586bf19b0cd8cb52c0287ac75b235f72cbab19358a962f14de74f042cc90da1ec7ded06e3ce07a4694a6511599ce9213485ed0e4d40a84d296663bf')
+
+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