# Contributor: # Maintainer: Kristóf Jakab setglobal pkgname = 'py-radix' setglobal pkgver = '0.9.6' setglobal pkgrel = '0' setglobal pkgdesc = '"An implementation of a radix tree for Python'" setglobal url = '"https://github.com/mjschultz/py-radix'" setglobal arch = '"all'" setglobal license = '"BSD'" setglobal depends = '"python2'" setglobal depends_dev = ''"" setglobal makedepends = '"python2-dev py-setuptools'" setglobal install = ''"" setglobal subpackages = ""$pkgname-doc"" setglobal source = ""$(pkgname)-$(pkgver).tar.gz::https://github.com/mjschultz/py-radix/archive/v$(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 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } setglobal md5sums = '"f41a2a75386066fcf76ddcf6c642bd97 py-radix-0.9.6.tar.gz'" setglobal sha256sums = '"8de768e3809e71c23098758385692e1a49983d2c2d788f741890cc5b08c58287 py-radix-0.9.6.tar.gz'" setglobal sha512sums = '"c16dca01820b128a02ac56fff7f223698f0886e4f5af33df25f608203d093e2537afa0583cd9092c8792afac72a2e68988799a6828bf5b26651c05a97799105e py-radix-0.9.6.tar.gz'"