From b74efe17f970df8815aa914454b3d38ad3cc31a5 Mon Sep 17 00:00:00 2001 From: prspkt Date: Thu, 6 Jun 2019 16:57:44 +0300 Subject: testing/py-sphinxcontrib-actdiag: drop python2 --- testing/py3-sphinxcontrib-actdiag/APKBUILD | 42 ++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 testing/py3-sphinxcontrib-actdiag/APKBUILD (limited to 'testing/py3-sphinxcontrib-actdiag') diff --git a/testing/py3-sphinxcontrib-actdiag/APKBUILD b/testing/py3-sphinxcontrib-actdiag/APKBUILD new file mode 100644 index 0000000000..4813c19ecf --- /dev/null +++ b/testing/py3-sphinxcontrib-actdiag/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Fabian Affolter +# Maintainer: Fabian Affolter +pkgname=py3-sphinxcontrib-actdiag +_pkgname=sphinxcontrib-actdiag +pkgver=0.8.5 +pkgrel=2 +pkgdesc="Sphinx "actdiag" extension" +url="https://pypi.python.org/pypi/sphinxcontrib-actdiag" +arch="noarch" +license="BSD" +depends="py3-actdiag py3-sphinx" +makedepends="py3-setuptools" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver + +prepare() { + local i + cd "$builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +replaces="py-sphinxcontrib-actdiag" # for backwards compatibility +provides="py-sphinxcontrib-actdiag=$pkgver-r$pkgrel" # for backwards compatibility + +build() { + cd "$builddir" + python2 setup.py build || return 1 + python3 setup.py build || return 1 +} + +package() { + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +md5sums="4d66d548b40e39bb7039df268b08f3fb sphinxcontrib-actdiag-0.8.5.tar.gz" +sha256sums="da3ba0fdfaaa0b855860ee94e97045249ddc0d4040d127247210d46acf068786 sphinxcontrib-actdiag-0.8.5.tar.gz" +sha512sums="3e526e675a4e17bff5c29f56f80f3feeadb0e408a818dc97e7a0c9acfcb70bc50a5a44d38bd40347ff8709d58deff824fb47caf89a8eeacce5cce9659651a701 sphinxcontrib-actdiag-0.8.5.tar.gz" -- cgit v1.2.3