diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 11:26:03 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 11:35:17 -0300 |
commit | 4e8a23fa535ebf9fc6d0cbd4e001975d48c99cd4 (patch) | |
tree | d1aa6999bd5c3313d816e92a830100029f214bee /testing/py3-phpserialize | |
parent | 160762948b31779f7d30711aeab1ad837310ce79 (diff) | |
download | aports-4e8a23fa535ebf9fc6d0cbd4e001975d48c99cd4.tar.bz2 aports-4e8a23fa535ebf9fc6d0cbd4e001975d48c99cd4.tar.xz |
testing/py3-phpserialize: drop py2
Diffstat (limited to 'testing/py3-phpserialize')
-rw-r--r-- | testing/py3-phpserialize/APKBUILD | 43 |
1 files changed, 17 insertions, 26 deletions
diff --git a/testing/py3-phpserialize/APKBUILD b/testing/py3-phpserialize/APKBUILD index ef33d13155..f0f83ba400 100644 --- a/testing/py3-phpserialize/APKBUILD +++ b/testing/py3-phpserialize/APKBUILD @@ -1,41 +1,32 @@ # Contributor: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-phpserialize +pkgname=py3-phpserialize _pkgname=phpserialize pkgver=1.3 -pkgrel=0 +pkgrel=1 pkgdesc="A PHP serializer implementation for Python" +options="!check" # failures=1 url="https://github.com/mitsuhiko/phpserialize" arch="noarch" -license="BSD" -depends="python2" -depends_dev="" -makedepends="python2-dev py-setuptools" -install="" -subpackages="" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +license="BSD-3-Clause" +depends="python3" +makedepends="py3-setuptools" +source="$pkgname-$pkgver.tar.gz::https://github.com/mitsuhiko/phpserialize/archive/$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver -_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-phpserialize" # Backwards compatibility +provides="py-phpserialize=$pkgver-r$pkgrel" # Backwards compatibility build() { - cd "$_builddir" - python2 setup.py build || return 1 + python3 setup.py build +} + +check() { + python3 setup.py test } package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + python3 setup.py install --prefix=/usr --root="$pkgdir" } -md5sums="cbf88a62e04135e3be3c7fe412525b8b phpserialize-1.3.tar.gz" -sha256sums="bf672d312d203d09a84c26366fab8f438a3ffb355c407e69974b7ef2d39a0fa7 phpserialize-1.3.tar.gz" -sha512sums="8b5cabbccb4e336912c376ac70b4c4b7d192f22660d5f679caeb583e9f47f45b933c19683bed003a88b86f59099bcd63a576fd72ce67ea6573587ffb3fa9e5a0 phpserialize-1.3.tar.gz" +sha512sums="d96e3aa87d2f03fef6c7cee234e90b373989a9c8e3a07a8e2147a2e7487d3448ea0ef646263e517d6b307bf66f9ba1a4e8def04f919767532cede802cc7db144 py3-phpserialize-1.3.tar.gz" |