aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-roman/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-roman/APKBUILD')
-rw-r--r--community/py3-roman/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/community/py3-roman/APKBUILD b/community/py3-roman/APKBUILD
new file mode 100644
index 0000000000..4c854067fe
--- /dev/null
+++ b/community/py3-roman/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: Matt Smith <mcs@darkregion.net>
+# Maintainer: Matt Smith <mcs@darkregion.net>
+pkgname=py3-roman
+_pkgname=roman
+pkgver=3.2
+pkgrel=2
+pkgdesc="Integer to Roman numerals converter"
+url="https://pypi.python.org/pypi/roman"
+arch="noarch"
+license="Python-2.0"
+depends="python3"
+makedepends="py3-setuptools"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+replaces="py-roman" # Backwards compatibility
+provides="py-roman=$pkgver-r$pkgrel" # Backwards compatibility
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ python3 setup.py test
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="142904551745c8b7874d52c8d04f483b0c18b18ba8bc3d3a51fcf509e09b3a3f8a28d0b88bdd8282957bf3d698b1bab86de7fb4808cde9b0e5cfb910deca35ab roman-3.2.tar.gz"