new upstream version 3.0

This commit is contained in:
Cedric Girard 2017-01-04 14:03:56 +01:00
parent c8195c9cd2
commit ac2a23996a
2 changed files with 7 additions and 8 deletions

View File

@ -1,8 +1,6 @@
# Generated by mksrcinfo v8
# Tue Jun 7 14:46:15 UTC 2016
pkgbase = python2-rarfile
pkgdesc = Rar archive reader for Python
pkgver = 2.8
pkgver = 3.0
pkgrel = 1
url = https://pypi.python.org/pypi/rarfile
arch = any
@ -15,8 +13,8 @@ pkgbase = python2-rarfile
optdepends = libarchive: Alternative to "unrar"
optdepends = python2-crypto: Parsing encrypted headers
provides = python-rarfile
source = https://pypi.io/packages/source/r/rarfile/rarfile-2.8.tar.gz
md5sums = 98942f9c51468ca044738fe2e96fdd2d
source = https://pypi.io/packages/source/r/rarfile/rarfile-3.0.tar.gz
md5sums = d7e9a8b429f5604730400b4db3362038
pkgname = python2-rarfile

View File

@ -4,7 +4,7 @@ _proj=rarfile
_python=python2 _pyver=2
#_python=python3 _pyver=""
pkgname="$_python-$_proj"
pkgver=2.8
pkgver=3.0
pkgrel=1
pkgdesc="Rar archive reader for Python"
arch=(any)
@ -25,11 +25,12 @@ provides=("python-$_proj")
source=(
"https://pypi.io/packages/source/r/$_proj/$_proj-$pkgver.tar.gz"
)
md5sums=('98942f9c51468ca044738fe2e96fdd2d')
md5sums=('d7e9a8b429f5604730400b4db3362038')
build() {
cd "$srcdir/$_proj-$pkgver"
"$_python" setup.py build
cd doc
make html SPHINXBUILD="sphinx-build$_pyver" BUILDDIR="_build-$pkgname"
}
@ -37,6 +38,6 @@ package() {
cd "$srcdir/$_proj-$pkgver"
"$_python" setup.py install --root="$pkgdir" --optimize=1
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -D -m644 README.html "$pkgdir/usr/share/doc/$pkgname/README.html"
install -d -m755 "$pkgdir/usr/share/doc/$pkgname"
cp -a "doc/_build-$pkgname/html" "$pkgdir/usr/share/doc/$pkgname/"
}