diff options
Diffstat (limited to 'testing/py-xlwt/APKBUILD')
-rw-r--r-- | testing/py-xlwt/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/py-xlwt/APKBUILD b/testing/py-xlwt/APKBUILD new file mode 100644 index 000000000..3de72cb5b --- /dev/null +++ b/testing/py-xlwt/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py-xlwt +_pkgname=xlwt +pkgver=0.7.4 +pkgrel=0 +pkgdesc="A library to create spreadsheet files" +url="http://pypi.python.org/pypi/xlwt/" +arch="noarch" +license="BSD" +depends="python" +depends_dev="" +makedepends="python-dev" +install="" +subpackages="" +source="http://pypi.python.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 +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +md5sums="231f4ff30894fc70d142b4ed1ba71cc0 xlwt-0.7.4.tar.gz" |