blob: b1f0d096bd4fd6082f781f59a2879a2e1796b08a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# 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")
sha256sums=('1d778663f1158be0f70aa1cdd5b2685ae6eee14e4d11a0d96684b7ed86e89c93')
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"
}
|