Initial upload: python-awesomeversion 21.2.3-1

This commit is contained in:
2021-03-23 10:42:21 +01:00
parent 8b9088d9c9
commit f06b06a3a0
2 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
# Maintainer: Giovanni Harting <539@idlegandalf.com>
pkgname=python-awesomeversion
_name=${pkgname#python-}
pkgver=21.2.3
pkgrel=1
pkgdesc="One version package to rule them all."
arch=('any')
url="https://github.com/ludeeus/awesomeversion"
license=('MIT')
depends=(python-black python-pre-commit python-requests)
makedepends=('python-setuptools')
source=("$pkgname-$pkgver.tar.gz::https://github.com/ludeeus/$_name/archive/refs/tags/$pkgver.tar.gz")
b2sums=('63fe640ebe90301b1bdd06ca56353e99921e182e8b78c158f6346a6cb114a7f260bc5746eb5616fb129d1054315c4c8aa87984801e293cd6025adfa59307a691')
build() {
cd $_name-$pkgver
python setup.py build
}
package() {
cd $_name-$pkgver
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
install -Dm644 LICENCE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}