#Maintainer: Thorsten Muehlfelder pkgname=luafilesystem pkgver=1.4.2 pkgrel=1tm arch=x86_64 source=("http://luaforge.net/frs/download.php/3931/luafilesystem-$pkgver.tar.gz") url="http://www.keplerproject.org/luafilesystem/" # extradepends: lua slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (filesystem related functions for Lua)" "LuaFileSystem is a Lua library developed to complement the set of" "functions related to file systems 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 "s#PREFIX=/usr/local#PREFIX=/usr#" config || return 1 sed -i "s#\ -O2\ #\ $CFLAGS\ #" config || return 1 make -j3 || return 1 mkdir -p $startdir/pkg/usr/lib/lua/5.1 cp src/lfs.so $startdir/pkg/usr/lib/lua/5.1 || return 1 mkdir -p $startdir/pkg/usr/doc/${pkgname}-${pkgver} cp README doc/us/* $startdir/pkg/usr/doc/${pkgname}-${pkgver}/ || return 1 }