diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..d3c5892 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +URL="https://www.lua.org/download.html" + +# Get version number from tag name +VERSION=$(curl -s -L "$URL" | grep -A1 'and its current release is' | grep -o -E '[0-9]{1,}\.[0-9]{1,}(\.[0-9]{1,})?' | head -n1) + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 76cc57d..556cbfd 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: lua description: A powerful, efficient, lightweight, embeddable scripting language -version: 5.4.6 +version: 5.4.8 url: https://www.lua.org/ license: MIT architecture: any diff --git a/source.sh b/source.sh index c9d0624..9777086 100644 --- a/source.sh +++ b/source.sh @@ -33,7 +33,10 @@ check() { # This function is used to move the compiled files into the output directory package() { make INSTALL_TOP="$BPM_OUTPUT"/usr INSTALL_DATA="cp -d" INSTALL_MAN="$BPM_OUTPUT"/usr/share/man/man1 TO_LIB="liblua.so liblua.so.${BPM_PKG_VERSION%.*} liblua.so.${BPM_PKG_VERSION}" DESTDIR="$BPM_OUTPUT" install + + # Install pkg-config file install -Dm644 lua.pc "$BPM_OUTPUT"/usr/lib/pkgconfig/lua.pc + # Install license install -Dm644 "$BPM_SOURCE"/doc/readme.html "$BPM_OUTPUT"/usr/share/licenses/lua/readme.html }