# Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> setvar pkgname = 'py-olefile' setvar pkgver = '0.43' setvar pkgrel = '2' setvar pkgdesc = ""A Python module to read/write MS OLE2 files"" setvar url = ""http://www.decalage.info/olefile"" setvar arch = ""noarch"" setvar license = ""custom"" setvar depends = """" setvar makedepends = ""python2-dev py-setuptools python3-dev"" setvar install = """" setvar subpackages = ""py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"" setvar source = ""https://bitbucket.org/decalage/olefileio_pl/downloads/${pkgname/py-/}-$pkgver.tar.gz"" setvar builddir = ""$srcdir"/${pkgname/py-/}-$pkgver" proc build { cd $builddir python2 setup.py build || return 1 python3 setup.py build || return 1 } proc package { mkdir -p $pkgdir } proc _py { local python=$1 setvar pkgdesc = ""$pkgdesc - $python"" setvar install_if = ""$pkgname=$pkgver-r$pkgrel $python"" cd $builddir $python setup.py install --prefix=/usr --root="$subpkgdir" } proc _py2 { _py python2 setvar replaces = "$pkgname" } proc _py3 { _py python3 } setvar md5sums = ""f570df81ebfab51aaa538af39fef6fd3 olefile-0.43.tar.gz"" setvar sha256sums = ""57102bf3f19c5fa099c0c7128190fe4bb28cd2760aa08f4b5b7dccf28718b876 olefile-0.43.tar.gz"" setvar sha512sums = ""5a2fbe69bbe13f2633b4d6c8861531f4ac0b41379fea889a6e74a1f0f78960e2b9db10516fae5f3d2a59f2dac6a6befcd78c11a9fc45212009a3097cdc5f61ea olefile-0.43.tar.gz""