From 36ccfc91839920ddebac20317be9d72c240273b2 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 14 Jun 2017 11:43:56 +0000 Subject: testing/py3-unoconv: cleanup --- testing/py3-unoconv/APKBUILD | 31 +++++++++++++++++++++++++++++++ testing/py3-unoconv/setup.py | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 testing/py3-unoconv/APKBUILD create mode 100644 testing/py3-unoconv/setup.py (limited to 'testing/py3-unoconv') diff --git a/testing/py3-unoconv/APKBUILD b/testing/py3-unoconv/APKBUILD new file mode 100644 index 0000000000..60733aefe1 --- /dev/null +++ b/testing/py3-unoconv/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: TBK +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 python3" +makedepends="python3-dev py-setuptools" +subpackages="" +source="unoconv-${pkgver}.tar.gz::https://github.com/dagwieers/unoconv/archive/$pkgver.tar.gz + setup.py" +builddir="$srcdir"/unoconv-$pkgver + +prepare() { + cp "$srcdir"/setup.py "$builddir"/ +} + +build() { + cd "$builddir" + python3 setup.py build +} + +package() { + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="3b0837e11f22733e0fbef93dc6aeabd0e2d3d59b6c35a6f7b29b86506a5842bcbffb3e889864d6e14c1e53dd306354690a699257fe60f36ce1d4455ab52b5df7 unoconv-0.7.tar.gz +b4fa76011fb96ba9521bb09d1a5c43dbd457c50bb2c6d66a5bc65928cde1e1d8174e43ad86f8f53755f222127cc5b0084b4564c248ce1fca56f9acfb4c03d86d setup.py" diff --git a/testing/py3-unoconv/setup.py b/testing/py3-unoconv/setup.py new file mode 100644 index 0000000000..9f1b45fc91 --- /dev/null +++ b/testing/py3-unoconv/setup.py @@ -0,0 +1,42 @@ +""" +Universal Office Converter - Convert between any document format supported by LibreOffice/OpenOffice. + +See: +https://github.com/dagwieers/unoconv +""" + +# Always prefer setuptools over distutils +from setuptools import setup, find_packages +# To use a consistent encoding +from codecs import open +from os import path + +here = path.abspath(path.dirname(__file__)) +# Get the long description from the README file +with open(path.join(here, 'README.adoc'), encoding='utf-8') as f: + long_description = f.read() + +setup(name = "unoconv", + version = "0.7", + author = "Dag Wieers", + author_email = "dag.wieers@gmail.com", + url = "https://github.com/dagwieers/unoconv", + description = "Universal Office Converter - Convert between any document format supported by LibreOffice/OpenOffice.", + scripts = ["unoconv"], + # See https://pypi.python.org/pypi?%3Aaction=list_classifiers + classifiers = [ + 'Development Status :: 5 - Production/Stable', + 'Environment :: Console', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'Intended Audience :: Education', + 'License :: OSI Approved :: GNU General Public License v2 (GPLv2)', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 3', + 'Topic :: Documentation', + 'Topic :: Office/Business :: Office Suites', + 'Topic :: Utilities', + + ] +) -- cgit v1.2.3