blob: 4d6744e35f86a572326a674133666a61ed15f904 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Maintainer: Ingo Meyer <i.meyer@fz-juelich.de>
pkgname="python-attr"
pkgver="0.3.2"
pkgrel="1"
pkgdesc="Simple decorator to set attributes of target function or class in a DRY way."
arch=("any")
url="https://github.com/denis-ryzhkov/attr"
license=("MIT")
depends=("python")
makedepends=("python-setuptools")
source=("https://github.com/denis-ryzhkov/attr/archive/${pkgver}.tar.gz")
sha256sums=("092be21d22755cd803c184d68e3a9867836727a451aac640840bb81daf4f4e52")
build() {
cd "${srcdir}/${pkgname#*-}-${pkgver}" || return
python setup.py build
}
package() {
cd "${srcdir}/${pkgname#*-}-${pkgver}" || return
python setup.py install --optimize=1 \
--prefix=/usr \
--root="${pkgdir}" \
--skip-build
}
|