aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/py3-unoconv/APKBUILD (renamed from testing/py-unoconv/APKBUILD)31
-rw-r--r--testing/py3-unoconv/setup.py (renamed from testing/py-unoconv/setup.py)0
2 files changed, 8 insertions, 23 deletions
diff --git a/testing/py-unoconv/APKBUILD b/testing/py3-unoconv/APKBUILD
index 6d4ce01593..60733aefe1 100644
--- a/testing/py-unoconv/APKBUILD
+++ b/testing/py3-unoconv/APKBUILD
@@ -1,45 +1,30 @@
# Contributor: TBK <tbk@jjtc.eu>
-pkgname=unoconv
+pkgname=py3-unoconv
pkgver=0.7
pkgrel=0
pkgdesc="Tool to convert between any document format supported by LibreOffice"
url="http://dag.wieers.com/home-made/unoconv/"
arch="noarch"
license="GPL2"
-depends="libreoffice"
+depends="libreoffice python3"
makedepends="python3-dev py-setuptools"
-subpackages="py3-${pkgname#py-}:_py3"
-source="${pkgname}-${pkgver}.tar.gz::https://github.com/dagwieers/$pkgname/archive/$pkgver.tar.gz
+subpackages=""
+source="unoconv-${pkgver}.tar.gz::https://github.com/dagwieers/unoconv/archive/$pkgver.tar.gz
setup.py"
-builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir"/unoconv-$pkgver
prepare() {
- cd "$builddir"/../
- mv setup.py "$builddir"
+ cp "$srcdir"/setup.py "$builddir"/
}
build() {
cd "$builddir"
- python3 setup.py build || return 1
+ python3 setup.py build
}
package() {
- mkdir -p "$pkgdir"
-}
-
-_py3() {
- depends="${depends//py-/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"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="3b0837e11f22733e0fbef93dc6aeabd0e2d3d59b6c35a6f7b29b86506a5842bcbffb3e889864d6e14c1e53dd306354690a699257fe60f36ce1d4455ab52b5df7 unoconv-0.7.tar.gz
diff --git a/testing/py-unoconv/setup.py b/testing/py3-unoconv/setup.py
index 9f1b45fc91..9f1b45fc91 100644
--- a/testing/py-unoconv/setup.py
+++ b/testing/py3-unoconv/setup.py