diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2018-07-03 06:17:32 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-07-13 15:42:07 +0000 |
commit | b70daa080d770886de37a8f6c88701ab34be5c1a (patch) | |
tree | 85bfb10b15798c5f1a54476318463d08356fc57a /main/py-yaml | |
parent | 3dfcbcd5e145ccd6a578273820fc51cd97fa4ba2 (diff) | |
download | aports-b70daa080d770886de37a8f6c88701ab34be5c1a.tar.bz2 aports-b70daa080d770886de37a8f6c88701ab34be5c1a.tar.xz |
main/py-yaml: upgrade to 4.1
Diffstat (limited to 'main/py-yaml')
-rw-r--r-- | main/py-yaml/APKBUILD | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/main/py-yaml/APKBUILD b/main/py-yaml/APKBUILD index 0b8296c124..91e7dd19cd 100644 --- a/main/py-yaml/APKBUILD +++ b/main/py-yaml/APKBUILD @@ -3,8 +3,8 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=py-yaml _pkgname=PyYAML -pkgver=3.12 -pkgrel=1 +pkgver=4.1 +pkgrel=0 pkgdesc="Python bindings for YAML" url="http://pyyaml.org" arch="all" @@ -12,16 +12,21 @@ license="MIT" depends="" makedepends="python2-dev python3-dev yaml-dev" subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" -source="http://pyyaml.org/download/pyyaml/$_pkgname-$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" +source="$_pkgname-$pkgver.tar.gz::https://github.com/yaml/pyyaml/archive/$pkgver.tar.gz" +builddir="$srcdir/pyyaml-$pkgver" build() { cd "$builddir" - - python2 setup.py build || return 1 + python2 setup.py build python3 setup.py build } +check() { + cd "$builddir" + python2 setup.py test + python3 setup.py test +} + package() { mkdir -p "$pkgdir" } @@ -44,6 +49,4 @@ _py() { $python setup.py install --prefix=/usr --root="$subpkgdir" } -md5sums="4c129761b661d181ebf7ff4eb2d79950 PyYAML-3.12.tar.gz" -sha256sums="592766c6303207a20efc445587778322d7f73b161bd994f227adaa341ba212ab PyYAML-3.12.tar.gz" -sha512sums="e16d8b7f4f026b6a95b11fb59c54ec5f114f6f516294eaa95e718abdf5d37c17a9c4b5e0a0a61fca04e801792d9b7fb801087cf849ff22b9581f6af204b1883a PyYAML-3.12.tar.gz" +sha512sums="3eb30d0d2f7e300dda98ad8378fa2ec4488071d165a7649d21ac32e1b3efeee14ee00ba86a32ba2db0c491866480f18480dec3e552ab7df82115bd9669833119 PyYAML-4.1.tar.gz" |