# Contributor: Fabian Affolter # Maintainer: Fabian Affolter setglobal pkgname = 'py-setuptools-git' setglobal _pkgname = 'setuptools-git' setglobal pkgver = '1.1' setglobal pkgrel = '0' setglobal pkgdesc = '"Setuptools plugin for Git'" setglobal url = '"https://github.com/wichert/setuptools-git'" setglobal arch = '"noarch'" setglobal license = '"BSD'" setglobal depends = '"python2 git'" 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 = '"7b5967e9527c789c3113b07a1f196f6e setuptools-git-1.1.tar.gz'" setglobal sha256sums = '"047d7595546635edebef226bc566579d422ccc48a8a91c7d32d8bd174f68f831 setuptools-git-1.1.tar.gz'" setglobal sha512sums = '"39e19c107f6398aaa1b78961c3b0d9d7b57b181d8ce0d93780460867fb7535ce45d266b93af43f45aa7afb89299199df22b0fdea61e9090932aeb4bd69c5f1f0 setuptools-git-1.1.tar.gz'"