#Maintainer: Christian Dersch <chrisdersch~at~googlemail~dot~com>

pkgname=eric4
pkgver=4.3.10
pkgrel=1cd
arch=i486
source=("http://downloads.sourceforge.net/project/eric-ide/eric4/stable/$pkgver/eric4-$pkgver.tar.gz"
		"http://downloads.sourceforge.net/project/eric-ide/eric4/stable/$pkgver/eric4-i18n-zh_CN.GB2312-$pkgver.tar.gz"
		"http://downloads.sourceforge.net/project/eric-ide/eric4/stable/$pkgver/eric4-i18n-tr-$pkgver.tar.gz"
		"http://downloads.sourceforge.net/project/eric-ide/eric4/stable/$pkgver/eric4-i18n-ru-$pkgver.tar.gz"
		"http://downloads.sourceforge.net/project/eric-ide/eric4/stable/$pkgver/eric4-i18n-fr-$pkgver.tar.gz"
		"http://downloads.sourceforge.net/project/eric-ide/eric4/stable/$pkgver/eric4-i18n-es-$pkgver.tar.gz"
		"http://downloads.sourceforge.net/project/eric-ide/eric4/stable/$pkgver/eric4-i18n-de-$pkgver.tar.gz"
		"http://downloads.sourceforge.net/project/eric-ide/eric4/stable/$pkgver/eric4-i18n-cs-$pkgver.tar.gz"
		"eric4.desktop")
url=http://eric-ide.python-projects.org/
docs=("LICENSE.GPL3" "README" "README-i18n.txt" "THANKS" "changelog")

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"eric4 (Python/Ruby IDE with PyQt integration)"
"eric4 is an editor and IDE for Python and Ruby written in Python."
"It is based on the Qt toolkit (PyQt) and includes a plugin system"
"which allows you to integrate additional features with plugins"
"available via the internet."
"eric4 also includes features for development of GUI applications using" 
"the PyQt bindings (Qt for Python)."
""
"http://eric-ide.python-projects.org/"
)

build() {
	cd $startdir/src/$pkgname-$pkgver
	python install.py -i $startdir/pkg -b /usr/bin
	mkdir -p $startdir/pkg/usr/share/pixmaps
	cp eric/icons/default/eric.png $startdir/pkg/usr/share/pixmaps/
	cd $startdir/src
	mkdir -p $startdir/pkg/usr/share/applications
	cp eric4.desktop $startdir/pkg/usr/share/applications/
}