mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
python-unrardll: add as calibre depnendency
This commit is contained in:
parent
09f70cd812
commit
bd92b755fa
40
python-unrardll/PKGBULD
Normal file
40
python-unrardll/PKGBULD
Normal file
@ -0,0 +1,40 @@
|
||||
_pkgname=unrardll
|
||||
pkgbase='python-unrardll'
|
||||
pkgname=('python3-unrardll' 'python2-unrardll')
|
||||
pkgver=0.1.3
|
||||
pkgrel=1
|
||||
pkgdesc="Python wrapper for UnRAR DLL"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/kovidgoyal/${_pkgname}"
|
||||
license=('BSD')
|
||||
depends=('libunrar')
|
||||
makedepends=('python3-setuptools' 'python2-setuptools')
|
||||
source=("https://pypi.io/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"{,.asc})
|
||||
sha256sums=('5f214ab1ec24208c6ee353f2d836e536968d5379b7140129f04aa3a52bc56a5e'
|
||||
'SKIP')
|
||||
validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${_pkgname}-${pkgver}"
|
||||
|
||||
python3 setup.py build
|
||||
python2 setup.py build
|
||||
}
|
||||
|
||||
package_python3-unrardll() {
|
||||
depends+=('python3')
|
||||
|
||||
cd "${srcdir}/${_pkgname}-${pkgver}"
|
||||
python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
|
||||
|
||||
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
|
||||
package_python2-unrardll() {
|
||||
depends+=('python2')
|
||||
|
||||
cd "${srcdir}/${_pkgname}-${pkgver}"
|
||||
python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
|
||||
|
||||
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
Loading…
Reference in New Issue
Block a user