30 lines
925 B
Bash
30 lines
925 B
Bash
# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net>
|
|
|
|
_realname=attrs
|
|
pkgbase=python-attrs
|
|
pkgname=("python-${_realname}")
|
|
pkgver=19.3.0
|
|
pkgrel=3
|
|
pkgdesc="Attributes without boilerplate."
|
|
arch=('any')
|
|
license=('MIT')
|
|
url="https://attrs.readthedocs.org/"
|
|
depends=('python')
|
|
makedepends=('python-setuptools')
|
|
provides=("python3-${_realname}")
|
|
replaces=("python3-${_realname}")
|
|
conflicts=("python3-${_realname}")
|
|
source=("https://pypi.io/packages/source/a/attrs/attrs-$pkgver.tar.gz")
|
|
sha512sums=('b5b641e6732156d1454ed6c49e3a6b29200a8d3f1515fb59aeb85fcb5e9ab6a1d760904de45083cae5250e7bf1a7aa2c1f3ede217240a63f989ae4bb484f2511')
|
|
|
|
build() {
|
|
cd "${srcdir}/${_realname}-${pkgver}"
|
|
/usr/bin/python setup.py build
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${_realname}-${pkgver}"
|
|
/usr/bin/python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|