blob: 06bbd69512c7777bdfb09d7386ad19834f6f2056 (
plain) (
tree)
|
|
# Contributor: Max Rees <maxcrees@me.com>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=py3-olefile
_pkgname=olefile
pkgver=0.45.1
pkgrel=0
pkgdesc="A Python module to read/write MS OLE2 files"
url="https://pypi.python.org/project/olefile"
arch="noarch"
license="BSD-2-Clause Custom"
depends="python3"
makedepends="py3-setuptools python3-dev unzip"
install=""
giturl="https://github.com/decalage2/olefile"
source="$pkgname-$pkgver.zip::https://files.pythonhosted.org/packages/source/o/$_pkgname/$_pkgname-$pkgver.zip"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
python3 setup.py build
}
check() {
cd "$builddir"
PYTHONPATH="build/lib" python3 tests/test_olefile.py
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}
sha512sums="31f7584553304b186aad88f1988dfa12ceb34a50d546a38181280a816cfcda8dc54ff502afb31a928d647e6106c9e4878bfac8cec31d24018fdbab65c7007e49 py3-olefile-0.45.1.zip"
|