diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 19 |
2 files changed, 12 insertions, 9 deletions
@@ -1,7 +1,7 @@ pkgbase = python-strictyaml pkgdesc = A type-safe YAML parser that parses a restricted subset of the YAML specificaton pkgver = 1.4.4 - pkgrel = 1 + pkgrel = 2 url = http://hitchdev.com/strictyaml arch = any license = MIT @@ -4,23 +4,26 @@ pkgname=python-strictyaml _pkgname=strictyaml pkgver=1.4.4 -pkgrel=1 +pkgrel=2 pkgdesc='A type-safe YAML parser that parses a restricted subset of the YAML specificaton' arch=(any) url="http://hitchdev.com/$_pkgname" license=(MIT) -depends=(python python-dateutil python-ruamel-yaml) +depends=(python + python-dateutil + python-ruamel-yaml) makedepends=(python-setuptools) -source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz") +_archive="$_pkgname-$pkgver" +source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_archive.tar.gz") sha256sums=('044ae3bec56f31e18dff8cfa62a2c9c028f4c7fe4c0f761e50761184d3b68eef') build() { - cd "$_pkgname-$pkgver" - python setup.py build + cd "$_archive" + python setup.py build } package() { - cd "$_pkgname-$pkgver" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt + cd "$_archive" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.txt } |