# Contributor: Fabian Affolter # Maintainer: Fabian Affolter setglobal pkgname = 'py-pybles' setglobal _pkgname = 'Pybles' setglobal pkgver = '1.0.1' setglobal pkgrel = '0' setglobal pkgdesc = '"A Python module to represent tables in the terminal'" setglobal url = '"http://pypi.python.org/pypi/Pybles/'" setglobal arch = '"noarch'" setglobal license = '"GPL3+'" setglobal depends = '"python2 py-blessings'" 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 = '"97b5063ffcf96d9edc3531ba12ba77da Pybles-1.0.1.tar.gz'" setglobal sha256sums = '"58df0c91bcc5e913c15c4eb1e88df441543815ab92f049c0daecf97ec93df05a Pybles-1.0.1.tar.gz'" setglobal sha512sums = '"5a50932e051b2737fad34eb074ce7c04c326d2a2c352645dd19397c99746a2ea1fc4a249e045ff48974cfbd76c5d64e3178f6c87908d3947e4c25e70d04a3f91 Pybles-1.0.1.tar.gz'"