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 CD3CEF857CE for ; Tue, 9 Jul 2019 06:33:00 +0000 (UTC) Received: from localhost.localdomain (clamav.wowana.me [IPv6:2001:67c:2db8:301:1845::2]) by mx1.volatile.bz (Postfix) with ESMTPSA id A3E7F1491 for ; Tue, 9 Jul 2019 06:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wowana.me; s=default; t=1562653978; bh=8sL/x29hF/RZcfIBnR11QZuZkjORYY/ncCkRhgkeX48=; h=From:To:Subject:Date; b=VRaTACMKulDV4LCaI2NxTrcYv7CvWxP4O1AH0FUXQutH32C213WHlwg8FZOseUrjA RT5llzrQB70IBdTE8vvVuDS6+b/6qxSdvExsJJN+xc32jRpBDHmeXe3MyY7G840C+p sI6iYLllpsdijZtimfX0+Mw5Jj8NqlwoBkhYA75s= From: opal hart To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH] testing/py-recis_i18n: new aport Date: Tue, 9 Jul 2019 06:32:46 +0000 Message-Id: <20190709063246.28883-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-precis_i18n/APKBUILD | 49 +++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 testing/py-precis_i18n/APKBUILD diff --git a/testing/py-precis_i18n/APKBUILD b/testing/py-precis_i18n/APKBUILD new file mode 100644 index 0000000000..d249dcc294 --- /dev/null +++ b/testing/py-precis_i18n/APKBUILD @@ -0,0 +1,49 @@ +# Maintainer: opal hart +pkgname=py-precis_i18n +_pkgname="${pkgname#py-}" +pkgver=1.0 +pkgrel=0 +pkgdesc="Python3 implementation of PRECIS framework (RFC 8264, RFC 8265, RFC 8266)" +url="https://github.com/byllyfish/precis_i18n" +arch="noarch" +license="GPL-3.0-only" +makedepends="py-setuptools" +subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3" +source="$_pkgname-$pkgver.tar.gz::https://github.com/byllyfish/precis_i18n/archive/v$pkgver.tar.gz" +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="b43622458fefb051e6f5ae6e347abfa65195052c63290b2be3ffb7c05eae0300caee53713d7216ee36c4ef0508cc4828e4d7ed3c65df873a684b803cc19bd410 precis_i18n-1.0.tar.gz" -- 2.21.0 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---