Skip to content
Snippets Groups Projects
Commit c3535fee authored by David Runge's avatar David Runge :chipmunk:
Browse files

Upgrade to 2.0.0.

Minor cleanups.
Remove unnecessary patch for pep8.
parent 4d2f1a2f
No related branches found
Tags 1.5.4-1
No related merge requests found
......@@ -2,7 +2,7 @@
_name=django-sekizai
pkgname=python-django-sekizai
pkgver=1.1.0
pkgver=2.0.0
pkgrel=1
pkgdesc="Django Template Blocks with extra functionality"
arch=('any')
......@@ -12,18 +12,13 @@ depends=('python-django' 'python-django-classy-tags')
makedepends=('python-setuptools')
# test files are missing from 1.1.0 release
# https://github.com/divio/django-sekizai/issues/87
# source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
source=("${_name}-${pkgver}.tar.gz::https://github.com/divio/${_name}/archive/${pkgver}.tar.gz"
"${pkgname}-1.0.0-disable_pep8.patch")
sha512sums=('4445adad1b3a9c8960a9bb1712e7a8f097e55d50d1d481a3064ca72fc2c11cda6a5ebf5cfbe0ae7ecb9ec70ae474b84d5c18407194104dd6524f4cd2e276e7d4'
'a523d4e6870b4224cd69abb40f25d9e214566f01a7021e537fc0eb56e5f9ede61219ef377598c8fc8f787275b3f17dd9c1e31a599d92acbb6bf7f12a9b2048a5')
# source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/divio/${_name}/archive/${pkgver}.tar.gz")
sha512sums=('edac88decc17e98eb30e399cb6e3a2b21941c920163ef8c8d412fec28e5137e470401b65189a9f0cbb2adbce240a4c8c2cb03e0f9735d1de2d5445fcf32f6e03')
b2sums=('a1760cdcb234400af4bc5c0bc69699439a9082cda49731992ad57cf162beba7d88e4e06d826a6fcf7e34af11f5ac42e6c7f83ce058cb0af0566c50a5cc3a9efc')
prepare() {
mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
cd "$pkgname-$pkgver"
# disabling pep8 usage in the tests, as it is super ancient:
# https://github.com/divio/django-sekizai/issues/85
patch -Np1 -i "../${pkgname}-1.0.0-disable_pep8.patch"
}
build() {
......@@ -40,9 +35,8 @@ check() {
package() {
cd "$pkgname-$pkgver"
python setup.py install --skip-build \
--optimize=1 \
--prefix=/usr \
--root="${pkgdir}"
--optimize=1 \
--root="${pkgdir}"
install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment