#Packager: Richard Lapointe <richard@laprjns.com>
#Former Packager(s): Name <email@address.com>
#Anything commented out is optional and can be deleted.

pkgname=cherrytree
pkgver=0.31.4
pkgrel=1rl
#arch=noarch
source=("http://www.giuspen.com/software/$pkgname-$pkgver.tar.xz")
sourcetemplate=http://people.salixos.org/laprjns/$pkgname/$pkgver
docs=("authors" "install" "readme" "copying")
url=http://www.giuspen.com/cherrytree
#dotnew=()
#CFLAGS=
#CXXFLAGS=
#options=('noextract')

#doinst() {
#
#}

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"cherrytree (A note taking application)"
"A hierarchical note taking application, featuring rich text and syntax"
"highlighting, storing data in a single xml or sqlite file."
)

build() {
	# python2 fix
	#for file in $(find . -name '*.py') cherrytree; do
 	#	echo "Applying python2 fix for ${file}"
 	#	sed -i 's_/usr/bin/env python_/usr/bin/env python2_' ${file}
 	#done
	
	cd $startdir/src/$pkgname-$pkgver
	python setup.py install --prefix=/usr --root=$startdir/pkg
}