#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com)

pkgname=pygame
pkgver=1.9.1
pkgrel=3rl
source=("ftp://pygame.org/pub/pygame/pygame-${pkgver}release.tar.gz" "v4l.patch")
docs=("readme*" "install" "copying" "changelog" "authors" "news" "todo" "maintainers" "pkg-info" "whatsnew" "install.html")
url=http://www.pygame.org

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"pygame (Python modules for writing games)"
"Pygame is a set of Python modules designed for writing games. It is"
"written on top of the excellent SDL library. This allows you to"
"create fully featured games and multimedia programs in the python"
"language."
)


build() {
	cd $startdir/src/${pkgname}-${pkgver}release

	patch -p1 < $startdir/src/v4l.patch || exit 1

	python setup.py build
	python setup.py install --root=$startdir/pkg
	mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver
}