# Contributor: Fabian Affolter # Maintainer: Fabian Affolter setglobal pkgname = 'py-bottle-rest' setglobal _pkgname = 'bottle-rest' setglobal pkgver = '0.4.0' setglobal pkgrel = '0' setglobal pkgdesc = '"A decorator for REST in Bottle'" setglobal url = '"https://pypi.python.org/pypi/bottle-rest/'" setglobal arch = '"noarch'" setglobal license = '"MIT'" setglobal depends = '"python2 py-bottle'" 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 = '"c69d0a1e21919718d6bce371311cb36a bottle-rest-0.4.0.tar.gz'" setglobal sha256sums = '"ec50a134efc64b1ae330a6f024633756f2f866cbc265152d645104897060d423 bottle-rest-0.4.0.tar.gz'" setglobal sha512sums = '"3a11d84ea3426ed3aff3036bef00b0277c90495659f8faba7fd2b08e853d2557f6726325df565d3181a8fb27314ccaf52336a540f860435f0acbd513727902b2 bottle-rest-0.4.0.tar.gz'"