#Maintainer: R S Ananda Murthy pkgname=gretl pkgver=1.9.7 pkgrel=1 zenver=72 arch=i486 source=("http://prdownloads.sourceforge.net/gretl/$pkgname-$pkgver.tar.bz2" "$pkgname.png" "http://downloads.sourceforge.net/project/gretl/manual/gretl-ref-a4.pdf" "http://downloads.sourceforge.net/project/gretl/manual/gretl-guide-a4.pdf") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/rsamurti/$pkgname/ docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://gretl.sourceforge.net/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "gretl - Gnu Regression, Econometrics and Time-series Library" "Gretl is a software package for econometric analysis, written in the C" "programming language. It comprises a shared library, a command-line" "client program, and a graphical client built using GTK+. The library" "and command-line client should compile and run on any platform that" "supports ANSI C; the command-line client uses the GNU readline library" "if available." ) doinst() { if [ -x usr/bin/update-desktop-database ]; then usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1 fi } build() { cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --disable-static --without-gnome --enable-gtk3 make || return 1 make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps; mv $startdir/src/$pkgname.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/$pkgname.png; mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver cp $startdir/*.pdf $startdir/pkg/usr/doc/$pkgname-$pkgver/; mkdir -p $startdir/pkg/usr/share/applications cat < $startdir/pkg/usr/share/applications/$pkgname.desktop [Desktop Entry] Encoding=UTF-8 Name=Gretl Comment=Econometric analysis tool Exec=gretl Icon=gretl Terminal=false Type=Application StartupNotify=true Categories=Science EOF # Fix wrong ownerships chown -R root:root $startdir/pkg/usr/share }