#Packager: George Vlahavas pkgname=lua-filesystem pkgver=20120408 pkgrel=1gv source=("$pkgname-$pkgver.tar.xz" "lfs.pc") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://keplerproject.github.io/luafilesystem/ options=('nosrcpack') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "lua-filesystem (lua filesystem library)" "LuaFileSystem is a Lua library developed to complement the set of" "functions related to filesystems offered by the standard Lua" "distribution. LuaFileSystem offers a portable way to access the" "underlying directory structure and file attributes." ) build() { cd $startdir/src/$pkgname-$pkgver sed -i \ -e "s|/usr/local|/usr|" \ -e "s|/lib|/lib${LIBDIRSUFFIX}|" \ -e "s|-O2 -Wall -fPIC|${CFLAGS} -Wall|" \ config make -j $numjobs || return 1 install -m 0755 -D src/lfs.so $startdir/pkg/usr/lib${LIBDIRSUFFIX}/lua/5.1/lfs.so ( cd $startdir/pkg/usr/lib${LIBDIRSUFFIX} ; ln -s lua/5.1/lfs.so ; ln -s {,lib}lfs.so ) install -m 0644 -D src/lfs.h $startdir/pkg/usr/include/lfs.h install -m 0644 -D $startdir/src/lfs.pc $startdir/pkg/usr/lib$LIBDIRSUFFIX/pkgconfig/lfs.pc sed -i "s|/lib|/lib$LIBDIRSUFFIX|" $startdir/pkg/usr/lib$LIBDIRSUFFIX/pkgconfig/lfs.pc mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver cp $startdir/src/$pkgname-$pkgver/doc/us/* $startdir/pkg/usr/doc/$pkgname-$pkgver/ }