aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2020-04-12 21:04:20 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-05-06 14:14:31 +0000
commitc319485df21d2d54866160d6218ba84c3b5f684c (patch)
tree0ce362898ff2da63c78fd6fd27fa80016038fd2c
parentceb7a0ac14788a8a506f4acd6f4c4b461241d599 (diff)
downloadaports-c319485df21d2d54866160d6218ba84c3b5f684c.tar.gz
aports-c319485df21d2d54866160d6218ba84c3b5f684c.tar.bz2
aports-c319485df21d2d54866160d6218ba84c3b5f684c.tar.xz
main/py3-olefile: move from main/py-olefile
-rw-r--r--main/py3-olefile/APKBUILD (renamed from main/py-olefile/APKBUILD)36
1 files changed, 11 insertions, 25 deletions
diff --git a/main/py-olefile/APKBUILD b/main/py3-olefile/APKBUILD
index fab7886614..a57bcae737 100644
--- a/main/py-olefile/APKBUILD
+++ b/main/py3-olefile/APKBUILD
@@ -1,43 +1,29 @@
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
-pkgname=py-olefile
+pkgname=py3-olefile
pkgver=0.46
-pkgrel=3
+pkgrel=4
pkgdesc="Python module to read/write MS OLE2 files"
-url="http://www.decalage.info/olefile"
+url="https://www.decalage.info/olefile"
arch="noarch"
license="BSD-2-Clause"
-makedepends="python2-dev py-setuptools python3-dev py3-setuptools"
-subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
+makedepends="python3-dev py3-setuptools"
source="https://github.com/decalage2/olefile/releases/download/v$pkgver/olefile-$pkgver.tar.gz"
+builddir="$srcdir"/${pkgname/py3-/}-$pkgver
-builddir="$srcdir"/${pkgname/py-/}-$pkgver
+provides="py-olefile=$pkgver-r$pkgrel" # backwards compatibility
+replaces="py-olefile" # backwards compatiblity
build() {
- python2 setup.py build
python3 setup.py build
}
-package() {
- mkdir -p "$pkgdir"
-}
-
-_py() {
- local python=$1
- pkgdesc="$pkgdesc - $python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
- cd "$builddir"
- $python setup.py install --prefix=/usr --root="$subpkgdir"
+check() {
+ python3 setup.py test
}
-_py2() {
- _py python2
- replaces="$pkgname"
-}
-
-_py3() {
- _py python3
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-
sha512sums="285dff1eb250d464e338f892dca3e465504523fd956ceeb8bfe40eb9a82510713f64f490749a23bfdc911555f8d9c49580af5b03a15063c2598bb1a39999778f olefile-0.46.tar.gz"