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

pkgname=gperiodic
pkgver=2.0.10
pkgrel=1gv
arch=i486
source=(http://www.frantz.fi/software/gperiodic-$pkgver.tar.gz)
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "gpl.txt")
url=http://www.frantz.fi/software/gperiodic.php

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"gperiodic (periodic table application)"
"GPeriodic is a program for looking up data of elements from the"
"periodic table. This program also features a non-graphical interface."
"This program was originally written by Kyle R. Burton."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	
	sed -i "s/-DGTK_DISABLE_DEPRECATED/$CFLAGS/" Makefile

	make || return 1
	make install DESTDIR=$startdir/pkg

	mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps
	mv $startdir/pkg/usr/share/pixmaps/gperiodic-crystal.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/gperiodic.png
	rm -rf $startdir/pkg/usr/share/pixmaps
}