46 lines
1 KiB
Bash
46 lines
1 KiB
Bash
# 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"
|
|
}
|