[arch-commits] Commit in ydcv/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Wed Dec 6 09:18:26 UTC 2017


    Date: Wednesday, December 6, 2017 @ 09:18:24
  Author: felixonmars
Revision: 272464

archrelease: copy trunk to community-any

Added:
  ydcv/repos/community-any/PKGBUILD
    (from rev 272463, ydcv/trunk/PKGBUILD)
Deleted:
  ydcv/repos/community-any/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-06 09:17:56 UTC (rev 272463)
+++ PKGBUILD	2017-12-06 09:18:24 UTC (rev 272464)
@@ -1,23 +0,0 @@
-# $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.4
-pkgrel=1
-arch=("any")
-url="https://github.com/felixonmars/ydcv"
-license=("GPL")
-depends=('python')
-makedepends=('git')
-source=("git+https://github.com/felixonmars/${pkgname}.git#tag=$pkgver")
-md5sums=('SKIP')
-
-package() {
-  cd $pkgname
-  install -Dm755 ${pkgname}.py "${pkgdir}/usr/bin/$pkgname"
-  install -Dm644 contrib/zsh_completion "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: ydcv/repos/community-any/PKGBUILD (from rev 272463, ydcv/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-12-06 09:18:24 UTC (rev 272464)
@@ -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=1
+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