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

# source: BLFS 8.4
TARBALL=python-$PKGVER-docs-html.tar.bz2
MD5SUM=ab5f82c3198370f4ad91638f653629da
SRC_URL=http://docs.python.org/ftp/python/doc/$PKGVER/$TARBALL
BUNDLE=

SLACKREQ=python
SLACKDESC="python-docs: python-docs $PKGVER (HTML documentation for Python)  
python-docs:  
python-docs: This package contains HTML documentation for Python 2.
python-docs: 
python-docs: 
python-docs: 
python-docs: 
python-docs: 
python-docs: 
python-docs: 
python-docs:
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_check $SRC_DIR $TARBALL $MD5SUM &&
	cp $SRC_DIR/$TARBALL tmp
}

### default pkg_package
### build
pkg_build() {
	cd /tmp &&
	install -v -dm755 /usr/share/doc/python-$PKGVER &&
	tar --strip-components=1 -C /usr/share/doc/python-$PKGVER \
		-xf python-$PKGVER-docs-html.tar.bz2                      &&
	find /usr/share/doc/python-$PKGVER -type d -exec chmod 0755 {} \; &&
	find /usr/share/doc/python-$PKGVER -type f -exec chmod 0644 {} \; &&
	pkg_build_slackdesc
}
