diff options
-rw-r--r-- | libraries/lunatic-python/lunatic-python.SlackBuild | 19 | ||||
-rw-r--r-- | libraries/lunatic-python/lunatic-python.info | 2 |
2 files changed, 11 insertions, 10 deletions
diff --git a/libraries/lunatic-python/lunatic-python.SlackBuild b/libraries/lunatic-python/lunatic-python.SlackBuild index b9302ff198..677e31dbae 100644 --- a/libraries/lunatic-python/lunatic-python.SlackBuild +++ b/libraries/lunatic-python/lunatic-python.SlackBuild @@ -22,12 +22,18 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20241020 bkw: Modified by SlackBuilds.org, BUILD=2: build with lua51. + +# Note to maintainer: you might want to look at this: +# https://github.com/bastibe/lunatic-python +# ...which is a fork that supports *modern* lua and python 3.x. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=lunatic-python SRCNAM=lunatic-python-bugfix VERSION=${VERSION:-1.1.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -39,9 +45,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -74,12 +77,10 @@ rm -rf $SRCNAM-$VERSION tar xvf $CWD/$SRCNAM-$VERSION.tar.gz cd $SRCNAM-$VERSION chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + +sed -i "/lua_pkgconfig =*/s,(.*,('lua51')," setup.py python setup.py install --root=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ diff --git a/libraries/lunatic-python/lunatic-python.info b/libraries/lunatic-python/lunatic-python.info index 8fffb6a9a1..ffc4829f94 100644 --- a/libraries/lunatic-python/lunatic-python.info +++ b/libraries/lunatic-python/lunatic-python.info @@ -5,6 +5,6 @@ DOWNLOAD="https://pypi.python.org/packages/source/l/lunatic-python-bugfix/lunati MD5SUM="42be02430fdd05b657d3a5078bbbe5af" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="lua" +REQUIRES="lua51" MAINTAINER="Dimitris Zlatanidis" EMAIL="d.zlatanidis@gmail.com" |