#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=pyroom
pkgver=0.4.1
pkgrel=2gv
source=("http://launchpad.net/pyroom/0.4/0.4.1/+download/pyroom-0.4.1.tar.gz")
docs=("authors" "install" "readme" "copying" "changelog")
url=http://pyroom.org

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"pyroom (distraction full-screen text editor)"
"PyRoom is a free editor that stays out your way - and keeps other"
"things out of your way, too. As a fullscreen editor without buttons,"
"widgets, formatting options, menus and with only the minimum of"
"required dialog windows, it doesn't have any distractions and lets you"
"focus on writing and only writing." 
)

build() {
	cd $startdir/src/$pkgname-$pkgver
	python setup.py install --prefix=/usr --root=$startdir/pkg
	sed -i "s/^Icon=.*/Icon=pyroom/" $startdir/pkg/usr/share/applications/pyroom.desktop
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/64x64/apps
	(
	cd $startdir/pkg/usr/share/icons/hicolor/64x64/apps
	ln -s ../../../../pyroom/pyroom.png pyroom.png
	)
}