[arch-commits] Commit in ydcv/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Dec 6 09:17:57 UTC 2017
Date: Wednesday, December 6, 2017 @ 09:17:56
Author: felixonmars
Revision: 272463
upgpkg: ydcv 0.5-1
Modified:
ydcv/trunk/PKGBUILD
----------+
PKGBUILD | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-06 08:47:00 UTC (rev 272462)
+++ PKGBUILD 2017-12-06 09:17:56 UTC (rev 272463)
@@ -4,19 +4,23 @@
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
+pkgver=0.5
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')
+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
- install -Dm755 ${pkgname}.py "${pkgdir}/usr/bin/$pkgname"
+ cd $pkgname-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 contrib/zsh_completion "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
}
More information about the arch-commits
mailing list