lua: adopted port
This commit is contained in:
parent
349915d4a2
commit
ab5ce2e610
@ -1,6 +1,6 @@
|
|||||||
untrusted comment: verify with /etc/ports/opt.pub
|
untrusted comment: verify with /etc/ports/opt.pub
|
||||||
RWSE3ohX2g5d/UIxC0NfwUQt8/KKgwaNtfciHJz19g0FS6Lbzup2jBmpGThWq6TzTPaMKoHUZlhj6sxqQsfHvuF46Kw7buQZrwc=
|
RWSE3ohX2g5d/TG4ggRhJjVgeg57cTJtg4rIhb9eSTuIHAhmPKX98e92yQTFU1pEH2BlBFAfB/2dxQJwh/ftrmFrnYcSbWOKqgU=
|
||||||
SHA256 (Pkgfile) = dcf89ae2214a6c5c43a26665e8c791a14b63c7760b2c8ebd5a748e0b4d7182c3
|
SHA256 (Pkgfile) = cf62bc6b640690ca5af6438cf63c5997028f134024d77b933d2dc0e8c4e70d37
|
||||||
SHA256 (.footprint) = 41e932842858e85daa0604071c0530545f05c7b3b01c570e06330ceec908a64e
|
SHA256 (.footprint) = 41e932842858e85daa0604071c0530545f05c7b3b01c570e06330ceec908a64e
|
||||||
SHA256 (lua-5.4.6.tar.gz) = 7d5ea1b9cb6aa0b59ca3dde1c6adcb57ef83a1ba8e5432c0ecd06bf439b3ad88
|
SHA256 (lua-5.4.6.tar.gz) = 7d5ea1b9cb6aa0b59ca3dde1c6adcb57ef83a1ba8e5432c0ecd06bf439b3ad88
|
||||||
SHA256 (liblua.so.patch) = a8a7f89ab0c03b4bc1d58a935c54df792ad628edb4d1788c5ac66e4fc2d9f800
|
SHA256 (liblua.so.patch) = a8a7f89ab0c03b4bc1d58a935c54df792ad628edb4d1788c5ac66e4fc2d9f800
|
||||||
|
44
lua/Pkgfile
44
lua/Pkgfile
@ -1,36 +1,36 @@
|
|||||||
# Description: A programming language designed for extending applications.
|
# Description: A programming language designed for extending applications
|
||||||
# URL: http://www.lua.org/
|
# URL: https://www.lua.org/
|
||||||
# Maintainer: Danny Rawlins, crux at romster dot me
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||||||
# Depends on: readline
|
# Depends on: readline
|
||||||
|
|
||||||
name=lua
|
name=lua
|
||||||
version=5.4.6
|
version=5.4.6
|
||||||
release=1
|
release=2
|
||||||
source=(https://www.lua.org/ftp/$name-$version.tar.gz
|
source=(https://www.lua.org/ftp/$name-$version.tar.gz
|
||||||
liblua.so.patch lua.pc)
|
liblua.so.patch lua.pc)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $name-$version
|
cd $name-$version
|
||||||
|
|
||||||
patch -p1 -i $SRC/liblua.so.patch
|
patch -p1 -i $SRC/liblua.so.patch
|
||||||
|
|
||||||
sed "s/%VER%/${version:0:3}/g;s/%REL%/$version/g" $SRC/lua.pc > lua.pc
|
sed "s/%VER%/${version:0:3}/g;s/%REL%/$version/g" $SRC/lua.pc > lua.pc
|
||||||
|
|
||||||
make MYCFLAGS="$CFLAGS -fPIC" MYLDFLAGS="$LDFLAGS" linux
|
make MYCFLAGS="$CFLAGS -fPIC" MYLDFLAGS="$LDFLAGS" linux
|
||||||
|
|
||||||
make \
|
make \
|
||||||
TO_LIB="liblua.a liblua.so liblua.so.${version:0:3} liblua.so.$version" \
|
TO_LIB="liblua.a liblua.so liblua.so.${version:0:3} liblua.so.$version" \
|
||||||
INSTALL_DATA='cp -d' \
|
INSTALL_DATA='cp -d' \
|
||||||
INSTALL_TOP=$PKG/usr \
|
INSTALL_TOP=$PKG/usr \
|
||||||
INSTALL_MAN=$PKG/usr/share/man/man1 \
|
INSTALL_MAN=$PKG/usr/share/man/man1 \
|
||||||
install
|
install
|
||||||
|
|
||||||
ln -s lua $PKG/usr/bin/lua${version:0:3}
|
ln -s lua $PKG/usr/bin/lua${version:0:3}
|
||||||
ln -s luac $PKG/usr/bin/luac${version:0:3}
|
ln -s luac $PKG/usr/bin/luac${version:0:3}
|
||||||
ln -s liblua.so.$version $PKG/usr/lib/liblua${version:0:3}.so
|
ln -s liblua.so.$version $PKG/usr/lib/liblua${version:0:3}.so
|
||||||
|
|
||||||
install -m 0644 -D lua.pc $PKG/usr/lib/pkgconfig/lua${version:0:1}${version:2:1}.pc
|
install -m 0644 -D lua.pc $PKG/usr/lib/pkgconfig/lua${version:0:1}${version:2:1}.pc
|
||||||
ln -s lua${version:0:1}${version:2:1}.pc $PKG/usr/lib/pkgconfig/lua.pc
|
ln -s lua${version:0:1}${version:2:1}.pc $PKG/usr/lib/pkgconfig/lua.pc
|
||||||
ln -s lua${version:0:1}${version:2:1}.pc $PKG/usr/lib/pkgconfig/lua${version:0:3}.pc
|
ln -s lua${version:0:1}${version:2:1}.pc $PKG/usr/lib/pkgconfig/lua${version:0:3}.pc
|
||||||
ln -s lua${version:0:1}${version:2:1}.pc $PKG/usr/lib/pkgconfig/lua-${version:0:3}.pc
|
ln -s lua${version:0:1}${version:2:1}.pc $PKG/usr/lib/pkgconfig/lua-${version:0:3}.pc
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user