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

Updating maintainer info. Switching to correct license (Unlicense).

Removing python2-orderedmultidict, as it has no dependants.
parent 270bf2d5
No related branches found
No related tags found
No related merge requests found
# Maintainer: David Runge <dave@sleepmap.de>
# Contributor: Husam Bilal <husam212 AT gmail DOT com>
# Maintainer: David Runge <dvzrv@archlinux.org>
_name=orderedmultidict
pkgbase=python-orderedmultidict
pkgname=('python-orderedmultidict' 'python2-orderedmultidict')
pkgname=python-orderedmultidict
pkgver=1.0.1
pkgrel=3
pkgrel=4
pkgdesc="Ordered multivalue dictionary that retains method parity with dict."
url="https://github.com/gruns/orderedmultidict"
makedepends=('python-setuptools' 'python2-setuptools')
checkdepends=('python-pycodestyle' 'python2-pycodestyle')
license=('custom')
depends=('python-six')
makedepends=('python-setuptools')
checkdepends=('flake8' 'python-entrypoints' 'python-mccabe'
'python-pycodestyle' 'python-pyflakes')
license=('Unlicense')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha512sums=('5a826bb46dfe9d7e6e2159bf545612a35dd0f1bb5817c1fd78e0f3f4019f9144b36be94af08f87e881a310f593091df09702d001624c377f559a30f64b219c24')
prepare() {
mv -v "${_name}-${pkgver}" "${pkgbase}-${pkgver}"
mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
}
build() {
cd "${pkgbase}-${pkgver}"
cd "${pkgname}-${pkgver}"
python setup.py build
python2 setup.py build
}
check() {
cd "${pkgbase}-${pkgver}"
cd "${pkgname}-${pkgver}"
python setup.py test
python2 setup.py test
}
package_python-orderedmultidict() {
depends=('python-six')
cd "${pkgbase}-${pkgver}"
package() {
cd "${pkgname}-${pkgver}"
python setup.py install --skip-build \
--optimize=1 \
--prefix=/usr \
--root="${pkgdir}"
install -vDm 644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -vDm 644 {API,README}.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}
package_python2-orderedmultidict() {
depends=('python2-six')
cd "${pkgbase}-${pkgver}"
python2 setup.py install --skip-build \
--optimize=1 \
--prefix=/usr \
--root="${pkgdir}"
install -vDm 644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -vDm 644 {API,README}.md -t "${pkgdir}/usr/share/doc/${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