X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by lists.alpinelinux.org (Postfix) with ESMTP id D432D5C43EC for ; Sat, 4 Mar 2017 06:14:45 +0000 (GMT) Received: from cotinga.riseup.net (unknown [10.0.1.164]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 3F0EC1A1A01 for ; Sat, 4 Mar 2017 06:14:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1488608085; bh=398hlyZhufzw3qyYxua8eZPfg0FSLyQc5yIqXTrdAyE=; h=From:To:Subject:Date:From; b=HBfatv7skCI9zbheumIydNvYHnXa1U76LRUgPW/rP2xrZPZPvF5Nwf6DMNmYJLhYZ CWMyjOMTu8JpQX4hZBaXo0AVYr/OvtCevmlXG4+eulFeqvaThpmQ3da4HvBkYJ3hUh YsDENK9hhulUy1CflL3w6XGx5KBeQCLXd2NIKCXk= Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: pickfire) with ESMTPSA id 1CC8341127 From: Ivan Tham To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH] testing/ydcv: new aport Date: Sat, 4 Mar 2017 14:14:32 +0800 Message-Id: <20170304061432.16148-1-pickfire@riseup.net> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: https://github.com/felixonmars/ydcv YouDao Console Version - Chinese online translate --- testing/ydcv/APKBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 testing/ydcv/APKBUILD diff --git a/testing/ydcv/APKBUILD b/testing/ydcv/APKBUILD new file mode 100644 index 0000000..180f0ec --- /dev/null +++ b/testing/ydcv/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Ivan Tham +# Maintainer: Ivan Tham +pkgname=ydcv +pkgver=0.4 +pkgrel=0 +pkgdesc="YouDao Console Version - Chinese online translate" +url="https://github.com/felixonmars/ydcv" +arch="noarch" +license="GPL" +depends="" # TODO: Either python2 or python3 is needed +subpackages="$pkgname-zsh-completion:zshcomp" +source="https://github.com/felixonmars/${pkgname}/archive/${pkgver}.tar.gz" +builddir="$srcdir/"$pkgname-$pkgver + +package() { + mkdir -p "$pkgdir"/usr/bin/$pkgname + install -Dm755 "$builddir"/ydcv.py \ + "$pkgdir"/usr/bin/$pkgname || return 1 + +} + +zshcomp() { + pkgdesc="Zsh completions for $pkgname" + depends="" + install_if="$pkgname=$pkgver-r$pkgrel zsh" + + mkdir -p "$subpkgdir"/usr/share/zsh/site-functions/ + install -Dm644 "$builddir"/contrib/zsh_completion \ + "$subpkgdir"/usr/share/zsh/site-functions/_$pkgname || return 1 +} + +sha512sums="96c19ab8496159c90ef634533cd2f4e0a3d8a85449ae988ef0cb4d4d73e106b6383ad8c4eef5bdd0e9c7ae07db3ba2cf20112c8fa34d9487786d0cd4744f9bf3 0.4.tar.gz" -- 2.11.1 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---