# Contributor: Fabian Affolter # Maintainer: Fabian Affolter setglobal pkgname = 'py-incoming' setglobal _pkgname = 'incoming' setglobal pkgver = '0.2.6' setglobal pkgrel = '0' setglobal pkgdesc = '"A Python JSON validation framework'" setglobal url = '"https://github.com/vaidik/incoming'" setglobal arch = '"noarch'" setglobal license = '"MIT'" setglobal depends = '"python2'" setglobal depends_dev = ''"" setglobal makedepends = '"python2-dev py-setuptools'" setglobal install = ''"" setglobal subpackages = ''"" setglobal source = ""https://files.pythonhosted.org/packages/source/$(_pkgname:0:1)/$_pkgname/$_pkgname-$pkgver.tar.gz"" setglobal _builddir = ""$srcdir"/$_pkgname-$pkgver" proc prepare { local i cd $_builddir for i in [$source] { match $i { with *.patch msg $i; patch -p1 -i "$srcdir"/$i || return 1 } } } proc build { cd $_builddir python2 setup.py build || return 1 } proc package { cd $_builddir python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 } setglobal md5sums = '"eb29d7c925daef241818745e703c6e53 incoming-0.2.6.tar.gz'" setglobal sha256sums = '"b09d781ecfa97ed05ecf3766073f1e68ba7dee5a5cd061a77198035b76cff488 incoming-0.2.6.tar.gz'" setglobal sha512sums = '"82902dc2adfba274497d51baebf577978c4c6a8ab5bf89b54c9b47abe0936f4cd8755c33451429049cc907f23e06b8bd51dbd3fadab4d42fff795a46b020f428 incoming-0.2.6.tar.gz'"