mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 21:56:40 +02:00
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
# Contributor: Ivan Tham <pickfire@riseup.net>
|
|
# Maintainer:
|
|
pkgname=ydcv
|
|
pkgver=0.7
|
|
pkgrel=8
|
|
pkgdesc="YouDao Console Version - Chinese online translate"
|
|
url="https://github.com/felixonmars/ydcv"
|
|
arch="noarch"
|
|
license="GPL-3.0-only"
|
|
depends="python3"
|
|
makedepends="py3-setuptools py3-setuptools_scm py3-gpep517"
|
|
subpackages="$pkgname-zsh-completion $pkgname-pyc"
|
|
source="ydcv-$pkgver.tar.gz::https://github.com/felixonmars/ydcv/archive/$pkgver.tar.gz
|
|
fix-version.patch
|
|
"
|
|
options="!check"
|
|
|
|
build() {
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
install -Dm644 "$builddir"/contrib/zsh_completion \
|
|
-t "$pkgdir"/usr/share/zsh/site-functions/_$pkgname
|
|
}
|
|
|
|
sha512sums="
|
|
04277b2cc586bf19b0cd8cb52c0287ac75b235f72cbab19358a962f14de74f042cc90da1ec7ded06e3ce07a4694a6511599ce9213485ed0e4d40a84d296663bf ydcv-0.7.tar.gz
|
|
9d06ff193a1c59808a895fe069ec1ae6169df18c285e756ad65d59b11b8b7171b343f5e32f1c17edf909ff49ffc73d3fc33a96b602f418191aff395bf835c3ba fix-version.patch
|
|
"
|