#Packager: Frdric Galusik <fredg~at~salixos~dot~org>

pkgname=python3-docs
pkgver=3.3.0
pkgrel=1fg
arch=noarch
source=("http://docs.python.org/ftp/python/doc/$pkgver/python-$pkgver-docs-html.tar.bz2" "python3-docs.desktop" "python3-docs.png")
sourcetemplate=http://people.salixos.org/fredg/packages/$pkgname/$pkgver/
url=http://python.org

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"python3-docs (Official Python 3 documentation)"
"Set of HTML documentation for the Python 3 programming language."
)


build() {
	cd $SRC/python-$pkgver-docs-html
	mkdir -p $PKG/usr/doc/$pkgname-$pkgver/html
	cp -rf * $PKG/usr/doc/$pkgname-$pkgver/html/
	install -Dm 644 $SRC/$pkgname.desktop \
		$PKG/share/applications/$pkgname.desktop
	install -Dm 644 $SRC/$pkgname.png \
		$PKG/usr/share/icons/hicolor/48x48/apps/$pkgname.png
}
