### this file is sourced not run
PKGVER=7.0.3
PKGBUILD=1
PKGARCH=noarch

# source: james
TARBALL=get-pip-7.0.3.py
MD5SUM=8b911e095db95b4dc1f11d4ce8377efd
#SRC_URL=https://bootstrap.pypa.io/$TARBALL # original source has no version
SRC_URL=http://distro.ibiblio.org/fatdog/source/700/$TARBALL
BUNDLE=

SLACKREQ='python'
SLACKDESC="python-pip: python-pip 7.0.3 (Python Package Installer)
python-pip: 
python-pip: pip is package manager for python. You only need to use this if the 
python-pip: python package you need is not available in gslapt repository. This 
python-pip: package is only needed for python < 2.7.9 (pyton 2.7.9 onwards 
python-pip: includes pip as standard).
python-pip: 
python-pip: https://pip.pypa.io/en/latest/index.html
python-pip: 
python-pip: 
python-pip: 
"

### default pkg_download
### prepare
pkg_prepare() {
	if pkg_check $SRC_DIR $TARBALL $MD5SUM; then
		cp $SRC_DIR/$TARBALL tmp
	fi
}

### default pkg_package
### build
pkg_build() {
	cd /tmp
	echo nameserver 8.8.8.8 > /etc/resolv.conf # it needs to download stuff
	python $TARBALL &&
	pkg_build_slackdesc &&
	rm -f /etc/resolv.conf
}


