ayaports/unmaintained/py2-unrardll/APKBUILD
build@apk-groulx 7c2d413554 3.17 cleanup
2023-01-11 00:40:45 +00:00

33 lines
948 B
Text

# Maintainer: Jelle van der Waa <jelle@archlinux.org>
# Contributor: Eli Schwartz <eschwartz93@gmail.com>
_pkgname=unrardll
pkgname='py2-unrardll'
pkgver=0.1.4
pkgrel=0
pkgdesc="Python wrapper for UnRAR DLL"
arch='x86_64'
url="https://github.com/kovidgoyal/${_pkgname}"
license='BSD'
depends='unrar'
makedepends='py2-setuptools python2-dev unrar-dev'
source="${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python2 setup.py build
}
check() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python2 setup.py test
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
sha512sums="1bb62ae74aa48de7bde544481688b3a5dadac158bb187280d4d495c945280468d6423da03aba9f4a1e6ea7fa7402b4c9bd7c5fe8a74a60b99380b68a86be2fc2 py2-unrardll-0.1.4.tar.gz"