aboutsummaryrefslogblamecommitdiffstats
path: root/main/py-hgtools/APKBUILD
blob: 76edaa04062d382fe47f554e7226f46391093c94 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                         
                       



























                                                                             
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=py-hgtools
pkgver=2.0.1
pkgrel=0
pkgdesc="setuptools plugin for mercurial repositories"
url="https://bitbucket.org/elarson/hgtools"
arch="noarch"
license="LGPL"
depends="py-setuptools"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/h/hgtools/hgtools-$pkgver.zip"

_builddir="$srcdir"/hgtools-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="dcbf136b7707edcd75ea11923a86fbea  hgtools-2.0.1.zip"