# Contributor: Fabian Affolter # Maintainer: Fabian Affolter setglobal pkgname = 'py-sphinxcontrib-gravatar' setglobal _pkgname = 'sphinxcontrib-gravatar' setglobal pkgver = '0.1.0' setglobal pkgrel = '0' setglobal pkgdesc = '"Sphinx gravatar extension'" setglobal url = '"https://pypi.python.org/pypi/sphinxcontrib-gravatar'" setglobal arch = '"noarch'" setglobal license = '"BSD'" setglobal depends = '"python2 py-sphinx'" 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 = '"5e30b438dd76e15a8a8ddf4a87422101 sphinxcontrib-gravatar-0.1.0.tar.gz'" setglobal sha256sums = '"055665d3536345d4c2d7e3d6d11a22be0bb773124f8cdbdd3adc22d2f65c43e7 sphinxcontrib-gravatar-0.1.0.tar.gz'" setglobal sha512sums = '"2e59b7c47b6c5f3e90880f1e32ad4e42e70bc3498edd3f3630256fc28f921c2cac1881001b960206f95b39cb970f097c97a2de0eaff27d3afb3b4c20e78933b8 sphinxcontrib-gravatar-0.1.0.tar.gz'"