initial import
This commit is contained in:
27
python-distro/PKGBUILD
Normal file
27
python-distro/PKGBUILD
Normal file
@@ -0,0 +1,27 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=python-distro
|
||||
pkgver=1.5.0
|
||||
pkgrel=1
|
||||
pkgdesc="OS platform information API"
|
||||
url='https://github.com/nir0s/distro'
|
||||
arch=('any')
|
||||
license=('Apache-2.0')
|
||||
depends=('python' 'python-setuptools' 'mypy' 'python-black')
|
||||
makedepends=('python-sphinx')
|
||||
options=('!makeflags')
|
||||
source=("https://github.com/nir0s/distro/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
|
||||
sha512sums=('35933ded65f99a86f9077af2d01528af337cda7b100f622fdcb0eaccd42baf7e4de77908870bfb1f575326cde85d6abc5a66f28a017c9813eb216dc55f3d94dd')
|
||||
|
||||
build() {
|
||||
cd distro-${pkgver}
|
||||
python setup.py build
|
||||
make man SPHINXBUILD=sphinx-build
|
||||
}
|
||||
|
||||
package_python-distro() {
|
||||
cd distro-${pkgver}
|
||||
python setup.py install -O1 --root="${pkgdir}" --skip-build
|
||||
install -Dm 644 README.md CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
|
||||
install -Dm 644 LICENSE -t $pkgdir/usr/share/licenses/$pkgname
|
||||
}
|
||||
Reference in New Issue
Block a user