aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2017-11-17 16:12:08 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-11-20 15:56:55 +0000
commitf3d9ca1d70da8c5d98dbb7660ebc2dc7215e8a2a (patch)
treef99eac6334611961e808f165a565846912adc097
parent3be852fb5e147c69ec412a37645304fea6b12076 (diff)
downloadaports-f3d9ca1d70da8c5d98dbb7660ebc2dc7215e8a2a.tar.bz2
aports-f3d9ca1d70da8c5d98dbb7660ebc2dc7215e8a2a.tar.xz
main/py-lockfile: upgrade to 0.12.2
-rw-r--r--main/py-lockfile/APKBUILD54
1 files changed, 30 insertions, 24 deletions
diff --git a/main/py-lockfile/APKBUILD b/main/py-lockfile/APKBUILD
index 27b208a0d9..55f6a833ef 100644
--- a/main/py-lockfile/APKBUILD
+++ b/main/py-lockfile/APKBUILD
@@ -2,40 +2,46 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-lockfile
_pkgname=lockfile
-pkgver=0.9.1
+pkgver=0.12.2
pkgrel=0
pkgdesc="A Python file locking module"
url="https://github.com/smontanaro/pylockfile"
arch="noarch"
license="MIT"
-depends="python2"
-depends_dev=""
-makedepends="python2-dev py-setuptools"
-install=""
-subpackages=""
+options="!check"
+depends=""
+makedepends="python2-dev python3-dev py-setuptools"
+subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
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
-}
+builddir="$srcdir"/$_pkgname-$pkgver
build() {
- cd "$_builddir"
- python2 setup.py build || return 1
+ cd "$builddir"
+ python2 setup.py build
+ python3 setup.py build
}
package() {
- cd "$_builddir"
- python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ mkdir -p "$pkgdir"
+}
+
+_py2() {
+ replaces="$pkgname"
+ _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"
}
-md5sums="ce61468d4c1263e3005737bbed2641f0 lockfile-0.9.1.tar.gz"
-sha256sums="23da589c91f59cb7c644d5ce5df539d448341bd479917d6dde973f82e2719147 lockfile-0.9.1.tar.gz"
-sha512sums="46288cb4d15bcb546d6cece7e032b7b020c71fba695d16a3c7718eeb0bc15c97c29f09f3c1649b6061d117e6bbd708e243fdcee89b2fa5f13a262a0e74f62c3d lockfile-0.9.1.tar.gz"
+sha512sums="67b7d651d7e963a497c2604912c61eed90181cdd09c744a0ceaa26e6bbe09d1a871ce48be3949b7da7ea6b366b15492c8c8de589edeca2641ca5e6cb3804df07 lockfile-0.12.2.tar.gz"