1
0
mirror of https://github.com/bertptrs/aur.git synced 2025-12-25 20:40:32 +01:00
Files
aur/python-opnieuw/PKGBUILD
Bert Peters e03dec23a7 upgpkg: python-opnieuw 3.0.0-2
Fix license, missing dependency
2024-03-25 08:47:41 +01:00

29 lines
745 B
Bash

# Maintainer: Bert Peters <bert@bertptrs.nl>
pkgname=python-opnieuw
pkgver=3.0.0
pkgrel=2
pkgdesc="A general-purpose retrying library, written in pure Python"
arch=('any')
url="https://github.com/channable/opnieuw"
license=('BSD-3-Clause')
depends=('python' 'python-typing_extensions')
makedepends=('python-setuptools')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('b2884a17b7acca433924d42af7685e3305098b220e545632fed8d9d7abdf2078')
build() {
cd "opnieuw-$pkgver"
python setup.py build
}
check() {
cd "opnieuw-$pkgver"
python -m unittest
}
package() {
cd "opnieuw-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}