wok-next annotate luafilesystem/receipt @ rev 20663
Fix web site for the Shimmer Project themes
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu May 10 22:58:32 2018 +0300 (2018-05-10) |
parents | a5c218b2f200 |
children | d5aab818505e |
rev | line source |
---|---|
al@19808 | 1 # SliTaz package receipt v2. |
pascal@17428 | 2 |
pascal@17428 | 3 PACKAGE="luafilesystem" |
al@19808 | 4 VERSION="1.6.3" |
al@19808 | 5 CATEGORY="libdevel" |
al@19808 | 6 SHORT_DESC="File system library for the Lua programming language" |
pascal@17428 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17428 | 8 LICENSE="MIT" |
al@19808 | 9 WEB_SITE="http://keplerproject.github.io/luafilesystem/" |
al@19808 | 10 |
pascal@17428 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@17428 | 12 WGET_URL="https://github.com/keplerproject/$PACKAGE/archive/v${VERSION//./_}.tar.gz" |
pascal@17428 | 13 |
al@19808 | 14 BUILD_DEPENDS="lua-dev" |
pascal@17428 | 15 |
pascal@17428 | 16 # Rules to configure and make the package. |
pascal@17428 | 17 compile_rules() |
pascal@17428 | 18 { |
al@19808 | 19 # Determine Lua version (i.e "5.3") |
al@19808 | 20 luaver=$(grep 'V=' /usr/lib/pkgconfig/lua.pc | cut -d= -f2) |
al@19808 | 21 # Fix prefix and install dir |
al@19808 | 22 sed -i "s|^PREFIX=.*|PREFIX=/usr|; s|5.1|$luaver|" $src/config |
al@19808 | 23 # Use DESTDIR |
al@19808 | 24 sed -i "s|\$(LUA_LIBDIR)|\$(DESTDIR)&|" $src/Makefile |
al@19808 | 25 |
al@19808 | 26 make && make test && make install |
pascal@17428 | 27 } |
pascal@17428 | 28 |
pascal@17428 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17428 | 30 genpkg_rules() |
pascal@17428 | 31 { |
al@19808 | 32 copy @std |
al@19808 | 33 SUGGESTED="lua" |
pascal@17428 | 34 } |