Files
extra/python-monotonic/PKGBUILD
2025-06-22 20:39:04 -05:00

21 lines
727 B
Bash

# Maintainer: Jesus E. <heckyel@riseup.net>
_realpkgname=monotonic
pkgname=python-$_realpkgname
pkgver=1.5
pkgrel=2
pkgdesc="An implementation of time.monotonic() for Python."
url='https://pypi.python.org/pypi/monotonic'
license=('Apache-2.0')
arch=('any')
depends=('python')
makedepends=('python-setuptools')
source=("$_realpkgname-$pkgver.tar.gz::https://github.com/atdt/monotonic/archive/$pkgver.tar.gz")
sha512sums=('acee69916a82059a027e7bcc03c58deb5ce773a1aff45938699cf09c3ab49b7827c2c01b431593ed76ae49009728c3d52923267eccfc7e15390f8730351a39e2')
package() {
cd "$srcdir/$_realpkgname-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}