diff options
Diffstat (limited to 'libraries/efl/efl.SlackBuild')
-rw-r--r-- | libraries/efl/efl.SlackBuild | 64 |
1 files changed, 40 insertions, 24 deletions
diff --git a/libraries/efl/efl.SlackBuild b/libraries/efl/efl.SlackBuild index 356c593ad0..601e5b724f 100644 --- a/libraries/efl/efl.SlackBuild +++ b/libraries/efl/efl.SlackBuild @@ -1,7 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for efl -# Erik Falor | Logan, UT | ewfalor@gmail.com +# Erik Falor | Logan, UT, USA | ewfalor@gmail.com | January 2024 +# All rights reserved. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -21,10 +22,13 @@ # with this program (most likely, a file named COPYING). If not, see # <http://www.gnu.org/licenses/>. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=efl -VERSION=${VERSION:-1.21.1} +VERSION=${VERSION:-1.27.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -34,7 +38,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# 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 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -53,13 +64,8 @@ else LIBDIRSUFFIX="" fi -if [ -e /usr/bin/elementary_run ]; then - echo "A previous installation of efl has been detected." - echo "Please uninstall it before running this script." - exit 1 -fi - -DOCS="ABOUT-NLS AUTHORS COMPLIANCE COPYING ChangeLog NEWS README" +DOCS="AUTHORS COMPLIANCE COPYING README.md" +LICENSES="licenses/COPYING.ASL licenses/COPYING.BSD licenses/COPYING.DNS licenses/COPYING.FTL licenses/COPYING.GPL licenses/COPYING.LGPL licenses/COPYING.NGINX-MIT licenses/COPYING.SMALL" set -e @@ -76,26 +82,36 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +sed -i '1i msgid ""\nmsgstr ""\n"Content-Type: text/plain; charset=UTF-8"\n' src/examples/edje/*/*.po + +meson . build \ + --prefix=/usr/ \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + -Dsystemd=false \ + -Decore-imf-loaders-disabler=scim \ + -Dglib=true \ + -Dbuild-id="$ARCH"-slackware-linux + +# 20200416 bkw: vita_cell on IRC reported missing DSO errors for -lm +# and -ldl. efl has a LOT of optional/autodetected libraries, I couldn't +# duplicate his problem, but it looks like some optional library normally +# adds the -lm -ldl in its pkgconfig file and he was missing whatever +# it was. In any case, adding them here won't hurt anything. +LIBS="-lm -ldl" \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --mandir=/usr/man \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ - --disable-systemd \ - --build=$ARCH-slackware-linux - -make -make install DESTDIR=$PKG +"${NINJA:=ninja}" -C build -v + +DESTDIR=$PKG $NINJA -C build install find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/licenses +cp -a $LICENSES $PKG/usr/doc/$PRGNAM-$VERSION/licenses + cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install @@ -103,4 +119,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |