#Packager: George Vlahavas # # Needs ruby if ruby bindings are to be compiled pkgname=stfl pkgver=0.21 pkgrel=1gv source=(http://www.clifford.at/stfl/stfl-$pkgver.tar.gz) docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://www.clifford.at/stfl/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "stfl (Structured Terminal Forms Language/Library)" "STFL is a library which implements a curses-based widget set for text" "terminals. The STFL API can be used from C, SPL, Python, Perl and" "Ruby. Since the API is only 14 simple function calls big and there are" "already generic SWIG bindings it is very easy to port STFL to" "additional scripting languages. A special language (the Structured" "Terminal Forms Language) is used to describe STFL GUIs. The language" "is designed to be easy and fast to write so an application programmer" "does not need to spend ages fiddling around with the GUI and can" "concentrate on the more interesting programming tasks." ) build() { cd $startdir/src/$pkgname-$pkgver sed -i "s/-Os//" Makefile make prefix=/usr libdir=/usr/lib${LIBDIRSUFFIX} || return 1 make install DESTDIR=$startdir/pkg prefix=/usr libdir=lib${LIBDIRSUFFIX} # No static lib, thanks rm $startdir/pkg/usr/lib${LIBDIRSUFFIX}/libstfl.a # Remove perllocal.pod and .packlist if present in the package ( for i in perllocal.pod .packlist; do find $startdir/pkg -name "$i" -exec rm -rf {} \; done ) || exit 1 }