liblua52: set prefix from @TERMUX_PREFIX@ in lua.pc
This commit is contained in:
parent
be6b7c30a8
commit
39d4a088b9
@ -12,9 +12,9 @@ TERMUX_PKG_BUILD_DEPENDS="readline"
|
|||||||
TERMUX_PKG_BUILD_IN_SRC=true
|
TERMUX_PKG_BUILD_IN_SRC=true
|
||||||
|
|
||||||
termux_step_configure() {
|
termux_step_configure() {
|
||||||
sed \
|
sed -e "s/%VER%/${TERMUX_PKG_VERSION%.*}/g;s/%REL%/${TERMUX_PKG_VERSION}/g" \
|
||||||
"s/%VER%/${TERMUX_PKG_VERSION%.*}/g;s/%REL%/${TERMUX_PKG_VERSION}/g" \
|
-e "s|@TERMUX_PREFIX@|$TERMUX_PREFIX|" \
|
||||||
"$TERMUX_PKG_BUILDER_DIR"/lua.pc > lua.pc
|
"$TERMUX_PKG_BUILDER_DIR"/lua.pc.in > lua.pc
|
||||||
}
|
}
|
||||||
|
|
||||||
termux_step_make() {
|
termux_step_make() {
|
||||||
@ -35,7 +35,7 @@ termux_step_make_install() {
|
|||||||
INSTALL_INC="$TERMUX_PREFIX/include/lua5.2" \
|
INSTALL_INC="$TERMUX_PREFIX/include/lua5.2" \
|
||||||
INSTALL_MAN="$TERMUX_PREFIX/share/man/man1" \
|
INSTALL_MAN="$TERMUX_PREFIX/share/man/man1" \
|
||||||
install
|
install
|
||||||
install -Dm644 lua.pc "$TERMUX_PREFIX"/lib/pkgconfig/lua52.pc
|
install -Dm600 lua.pc "$TERMUX_PREFIX"/lib/pkgconfig/lua52.pc
|
||||||
|
|
||||||
mv -f "$TERMUX_PREFIX"/share/man/man1/lua.1 "$TERMUX_PREFIX"/share/man/man1/lua5.2.1
|
mv -f "$TERMUX_PREFIX"/share/man/man1/lua.1 "$TERMUX_PREFIX"/share/man/man1/lua5.2.1
|
||||||
mv -f "$TERMUX_PREFIX"/share/man/man1/luac.1 "$TERMUX_PREFIX"/share/man/man1/luac5.2.1
|
mv -f "$TERMUX_PREFIX"/share/man/man1/luac.1 "$TERMUX_PREFIX"/share/man/man1/luac5.2.1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
V=%VER%
|
V=%VER%
|
||||||
R=%REL%
|
R=%REL%
|
||||||
|
|
||||||
prefix=/data/data/com.termux/files/usr
|
prefix=@TERMUX_PREFIX@
|
||||||
INSTALL_BIN=${prefix}/bin
|
INSTALL_BIN=${prefix}/bin
|
||||||
INSTALL_INC=${prefix}/include/lua5.2
|
INSTALL_INC=${prefix}/include/lua5.2
|
||||||
INSTALL_LIB=${prefix}/lib
|
INSTALL_LIB=${prefix}/lib
|
Loading…
Reference in New Issue
Block a user