X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mx1.volatile.bz (mx1.volatile.bz [185.163.46.97]) by lists.alpinelinux.org (Postfix) with ESMTP id D1E40F854E8 for ; Tue, 9 Jul 2019 06:34:50 +0000 (UTC) Received: from localhost.localdomain (clamav.wowana.me [IPv6:2001:67c:2db8:301:1845::2]) by mx1.volatile.bz (Postfix) with ESMTPSA id 6AE6C1491 for ; Tue, 9 Jul 2019 06:34:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wowana.me; s=default; t=1562654090; bh=9xYjAI1aVUu2vbS1nQcV5C61U3WdJgS9lwQBYW1Suxo=; h=From:To:Subject:Date; b=GKLACZ4jh68f1HCW4XNpeFP75qvE5xm4IsBLX/UxmxDdk54yyADO8bg6+hm3NnhIU dCGrAA7bYgdM7hCd7C8EUKsE9mu6WS4yI+oilImpKUshIb179js2w1lFDpkJx2KuWb vg5w95vEb4QhEV16JV9Ico7OYSxhQI67+cukZjfs= From: opal hart To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH] testing/py-keyring: new aport Date: Tue, 9 Jul 2019 06:34:42 +0000 Message-Id: <20190709063442.30175-1-opal@wowana.me> X-Mailer: git-send-email 2.21.0 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit --- testing/py-keyring/APKBUILD | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 testing/py-keyring/APKBUILD diff --git a/testing/py-keyring/APKBUILD b/testing/py-keyring/APKBUILD new file mode 100644 index 0000000000..fab5fa942e --- /dev/null +++ b/testing/py-keyring/APKBUILD @@ -0,0 +1,50 @@ +# Maintainer: opal hart +pkgname=py-keyring +_pkgname="${pkgname#py-}" +pkgver=19.0.1 +pkgrel=0 +pkgdesc="Access the system keyring service from Python" +url="https://github.com/jaraco/keyring" +arch="noarch" +license="GPL-3.0-only" +makedepends="py-setuptools" +subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +#options="!check" # no test suite +builddir="$srcdir"/$_pkgname-$pkgver + +build() { + cd "$builddir" + python2 setup.py build + python3 setup.py build +} + +check() { + cd "$builddir" + python2 setup.py check + python3 setup.py check +} + +package() { + mkdir -p "$pkgdir" +} + +_py2() { + _py python2 +} + +_py3() { + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +sha512sums="7dbc15ec622e12a5bd449947e02f329f0004894f76fcd68b4eeabe5771c3bb4721d51bde28ec9de552bcf8db0ebf2f87e57e19e3f8c123e334fd947c7961c92f keyring-19.0.1.tar.gz" -- 2.21.0 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---