upgpkg: python-vdf: initial upload
This commit is contained in:
commit
97c3fd2ac4
7 changed files with 119 additions and 0 deletions
46
PKGBUILD
Normal file
46
PKGBUILD
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
# Maintainer: Christian Schendel <doppelhelix@gmail.com>
|
||||
# Maintainer: Rhinoceros <https://aur.archlinux.org/account/rhinoceros>
|
||||
# Contributor: Abhishek Mudgal
|
||||
# Contributor: Ivan Semkin (ivan at semkin dot ru)
|
||||
|
||||
_pkgname=vdf
|
||||
pkgname=python-vdf
|
||||
pkgver=4.0
|
||||
pkgrel=2
|
||||
pkgdesc="Library for working with Valve's VDF text format"
|
||||
arch=('any')
|
||||
url='https://github.com/solsticegamestudios/vdf'
|
||||
license=(
|
||||
MIT
|
||||
)
|
||||
depends=(
|
||||
'python>=3.6'
|
||||
)
|
||||
makedepends=(
|
||||
python-setuptools
|
||||
)
|
||||
checkdepends=(
|
||||
python-nose
|
||||
python-coverage
|
||||
python-pytest
|
||||
)
|
||||
source=(
|
||||
"$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
|
||||
)
|
||||
b2sums=('1d4cddc7057081c8aefb1bf603eca8cac69c62926643459b88d856e49938b461e106a89d6fe09dfb3a6ee3956af6fbf9cb9e3d2fca82665eb2f1dbe1198bc5d6')
|
||||
|
||||
build() {
|
||||
cd "$_pkgname-$pkgver"
|
||||
python setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$_pkgname-$pkgver"
|
||||
pytest tests
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_pkgname-$pkgver"
|
||||
python setup.py install --optimize=1 --root="${pkgdir}/"
|
||||
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue