|
|
|
@ -22,7 +22,7 @@ |
|
|
|
# <http://www.gnu.org/licenses/>. |
|
|
|
|
|
|
|
PRGNAM=efl |
|
|
|
VERSION=${VERSION:-1.21.1} |
|
|
|
VERSION=${VERSION:-1.24.3} |
|
|
|
BUILD=${BUILD:-1} |
|
|
|
TAG=${TAG:-_SBo} |
|
|
|
|
|
|
|
@ -53,13 +53,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 COPYING.images ChangeLog INSTALL NEWS README" |
|
|
|
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,33 +71,32 @@ 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 {} \; |
|
|
|
|
|
|
|
meson . build \ |
|
|
|
--prefix=/usr/ \ |
|
|
|
--libdir=/usr/lib${LIBDIRSUFFIX} \ |
|
|
|
-Dsystemd=false \ |
|
|
|
-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" \ |
|
|
|
LIBS="-lm -ldl" \ |
|
|
|
./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 -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 |
|
|
|
|