#Packager: fredg <fred.galusik~at~gmail~dot~com>

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

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

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