has anyone installed enlightenement on debian 9.8 stable?
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hell no hemlocktree I'm a newbie too dont you mind that lq guru stuff in my signature, it only partially true.
We learn by doing, mistakes are part of the process.
we'll do it together man
does that one have a general wifi driver for intel already setup in that one. the other live didn't, I thought at least with a live Debian would have had their wifi working. I went back to compiling it in void to see if this script works.
oh idk bw-userx what needs to be installed on it for your wireless?
Did you boot up persistent? use the rc2 in 2nd post
In my setup I use broadcom-sta 4312 its a dell inspiron 1545
oh idk bw-userx what needs to be installed on it for your wireless?
Did you boot up persistent? use the rc2 in 2nd post
In my setup I use broadcom-sta 4312 its a dell inspiron 1545
no I just looked at this post a minute ago, I am downloading it right now, and let you know after I get it burned to a sub stick and go through what I got a go through to find out, whats what.
I am stuck on elf compiling because I do not have anything installed prior to it is all being compiled in a temp dir just to check compiling and deps needed. it should work like it is, as it is right now, .. I just kind of want to be sure it does is all.
you got something already set up for testing? because what you are suggesting is something I am not really wanting to put myself through.
this is the script. Just need to change some lines to get it to instsall into the system instead of the temp dir in /tmp/SBo.
just mod these lines in all of the build 5 total.
Code:
make install DESTDIR=$PKG
to
make install
you doing slack should understand that part.
for Debian install. Make sure you install what this page tells you to first before running this script. if it fails It tells you how to deal with that in the header of this script.
#!/bin/sh
# all copyrights, warranties are as given within this script.
# this script itself holds to same said copywrites, and warranties.
# 2019
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
workingDIR=$(pwd)
#####################################################
############### READ ME READ ME READ ME READ ME READ ME
#############
#functionized to control building and installing
#incase one source build fails then you can comment out the
#the functions prior that completed without error
# so you do not have to worry
#about having to rebuild and install everything all over again.
#just comment out the prior ones that worked,
#fix the error then run this script again, so
# it will start at the source you left off at.
#
# all funcitions are called in order and at the bottom of
# this file
# add this file and all of the tar balls for source in
#same dir then run this script. Make this file
#exectuable
#
# chmod +x scriptname
# command to run this script on cli
#in the same location as the script and all
#source tar balls.
# sudo ./scriptname
# soruce tar balls off of slackbuilds.org for
# enlightenment are as follows
# LuaJIT-2.0.5.tar.gz
# enlightenment-0.22.4.tar.xz
# bullet3-2.88.tar.gz
# lua-5.1.5.tar.gz
# efl-1.21.1.tar.xz
# xinitrc.enlightenment
# is taken from enlightenment tar.gz for its
#slackbuild may not be needed, and not tested
#at the time of writing this.
#mainBuildE22 is the name I used for this script.
#it can be any name user wants.
##############################
## FUNCTIONS START HERE
luey()
{
# tar balls compiled and installed in order
# lua luaJit bullet fel enlightenment
# 1
# Slackware build script for Lua
# Written by Menno Duursma
# Modified by the SlackBuilds.org project
# Modified by Aaron W. Hsu
# Updated by Matteo Bernardini
# This program is free software. It comes without any warranty.
# Granted WTFPL, Version 2, as published by Sam Hocevar. See
# http://sam.zoy.org/wtfpl/COPYING for more details.
PRGNAM=lua
LUAVERSION=${LUAVERSION:-5.1.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$LUAVERSION
tar xvf $CWD/$PRGNAM-${LUAVERSION}.tar.gz
cd $PRGNAM-$LUAVERSION
chown -R root:root .
# Fix up a to-be-installed header and the pkgconfig file
sed -i "s|/usr/local|/usr|" src/luaconf.h
sed -i "s|lib/lua|lib$LIBDIRSUFFIX/lua|" src/luaconf.h
sed -i "s|/usr/local|/usr|" etc/lua.pc
sed -i "s|prefix}/lib|prefix}/lib${LIBDIRSUFFIX}|g" etc/lua.pc
make linux \
CFLAGS="$SLKCFLAGS \$(MYCFLAGS)" \
INSTALL_TOP=/usr \
INSTALL_LIB=/usr/lib${LIBDIRSUFFIX} \
INSTALL_LMOD=/usr/share/lua/5.1 \
INSTALL_CMOD=/usr/lib${LIBDIRSUFFIX}/lua/5.1
make linux install \
CFLAGS="$SLKCFLAGS \$(MYCFLAGS)" \
INSTALL_TOP=$PKG/usr \
INSTALL_LIB=$PKG/usr/lib${LIBDIRSUFFIX} \
INSTALL_LMOD=$PKG/usr/share/lua/5.1 \
INSTALL_CMOD=$PKG/usr/lib${LIBDIRSUFFIX}/lua/5.1
# Now let's build the shared library
mkdir -p shared
cd shared
ar -x $PKG/usr/lib${LIBDIRSUFFIX}/liblua.a
gcc -ldl -lreadline -lhistory -lncurses -lm -shared *.o -o liblua.so.$VERSION
cp -a liblua.so.$VERSION $PKG/usr/lib${LIBDIRSUFFIX}
( cd $PKG/usr/lib${LIBDIRSUFFIX}
ln -s liblua.so.$VERSION liblua.so.5.1
ln -s liblua.so.$VERSION liblua.so.5
ln -s liblua.so.$VERSION liblua.so
)
cd ..
# and install the pkgconfig file
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig
cat etc/lua.pc > $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/lua.pc
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
}
cd "$workingDIR"
echo "DONE 1"
luajity()
{
#
## for slackware not needed so I comment out, leaving in only for educatial purposes.
#
#find $PKG/usr/man -type f -exec gzip -9 {} \;
#for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
#mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/{extras,html}
#cp -a COPYRIGHT HISTORY INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
#cp -a doc/*.html doc/logo.gif doc/lua.css $PKG/usr/doc/$PRGNAM-$VERSION/html
#cp -a etc test $PKG/usr/doc/$PRGNAM-$VERSION/extras
#cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
#
#mkdir -p $PKG/install
#cat $CWD/slack-desc > $PKG/install/slack-desc
#cd $PKG
#/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
##############################################################
## next luajit
####
# 2
# Slackware build script for luajit
# Copyright 2018 Erik Falor <ewfalor@gmail.com>, Logan, Utah, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=luajit
luajitVERSION=${luajitVERSION:-2.0.5}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf LuaJIT-$luajitVERSION
tar zxvf $CWD/LuaJIT-$luajitVERSION.tar.gz
cd LuaJIT-$luajitVERSION
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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
make \
Q= \
PREFIX=/usr \
MULTILIB=lib${LIBDIRSUFFIX} \
INSTALL_LIB=/usr/lib${LIBDIRSUFFIX} \
INSTALL_MAN=/usr/man/man1
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
make install \
Q= \
DESTDIR=$PKG \
PREFIX=/usr \
MULTILIB=lib${LIBDIRSUFFIX} \
INSTALL_LIB=$PKG/usr/lib${LIBDIRSUFFIX} \
INSTALL_MAN=$PKG/usr/man/man1
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
}
# end function
cd "$workingDIR"
echo "DONE 2"
## for slackware not needed so I comment out, leaving in only for educatial purposes.
#
#find $PKG/usr/man -type f -exec gzip -9 {} \;
#mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
#cp -a \
# doc/* COPYRIGHT README \
#$PKG/usr/doc/$PRGNAM-$VERSION
#cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
#mkdir -p $PKG/install
#cat $CWD/slack-desc > $PKG/install/slack-desc
#
#cd $PKG
#/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
bullets()
{
####################################################
## next Bullet
##############
# 3
# Slackware build script for Bullet Physics
# Originally Written by Jože Zobec <jozze.zepl@gmail.com>
# Copyright 2014-2019 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All Right Reserved
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=bullet
bulletVERSION=${bulletVERSION:-2.88}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf ${PRGNAM}3-$bulletVERSION
tar xvf $CWD/${PRGNAM}3-$bulletVERSION.tar.gz
cd ${PRGNAM}3-$bulletVERSION
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 {} \;
mkdir -p build
cd build
cmake -DCMAKE_C_FLAGS="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX="${LIBDIRSUFFIX}" \
-DBUILD_SHARED_LIBS=ON \
-DINSTALL_LIBS=ON \
-DINSTALL_EXTRA_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
cd ..
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
}
#end function
cd "$workingDIR"
echo "DONE 3"
## for slackware not needed so I comment out, leaving in only for educatial purposes.
#
#mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
#cp -a AUTHORS.txt LICENSE.txt README.md VERSION docs/*.pdf $PKG/usr/doc/$PRGNAM-$VERSION
#cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
#
#mkdir -p $PKG/install
#cat $CWD/slack-desc > $PKG/install/slack-desc
#
#cd $PKG
#/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
elfy()
{
######################################################
# next efl
####
#4
# Slackware build script for efl
# Erik Falor | Logan, UT | ewfalor@gmail.com
# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version, with the following exception:
# the text of the GPL license may be omitted.
# This program is distributed in the hope that it will be useful, but
# without any warranty; without even the implied warranty of
# merchantability or fitness for a particular purpose. Compiling,
# interpreting, executing or merely reading the text of the program
# may result in lapses of consciousness and/or very being, up to and
# including the end of all existence and the Universe as we know it.
# See the GNU General Public License for more details.
# You may have received a copy of the GNU General Public License along
# with this program (most likely, a file named COPYING). If not, see
# <http://www.gnu.org/licenses/>.
PRGNAM=efl
eflVERSION=${eflVERSION:-1.21.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
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"
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$eflVERSION
tar xvf $CWD/$PRGNAM-$eflVERSION.tar.?z*
cd $PRGNAM-$eflVERSION
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 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$eflVERSION \
--disable-systemd \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
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
}
#end function
cd "$workingDIR"
echo "DONE 4"
## for slackware not needed so I comment out, leaving in only for educatial purposes.
#
#mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
#cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
#cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
#
#mkdir -p $PKG/install
#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}
enlightenmenty()
{
#########################################################################
# next Enlightenment
#####
#5
# Slackware build script for Enlightenment
# Copyright 2018 Erik Falor <ewfalor@gmail.com>, Logan, Utah, USA
# All rights reserved.
# Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org
# Originally by Aleksandar Samardzic <asamardzic@gmail.com>
# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version, with the following exception:
# the text of the GPL license may be omitted.
# This program is distributed in the hope that it will be useful, but
# without any warranty; without even the implied warranty of
# merchantability or fitness for a particular purpose. Compiling,
# interpreting, executing or merely reading the text of the program
# may result in lapses of consciousness and/or very being, up to and
# including the end of all existence and the Universe as we know it.
# See the GNU General Public License for more details.
# You may have received a copy of the GNU General Public License along
# with this program (most likely, a file named COPYING). If not, see
# <http://www.gnu.org/licenses/>.
PRGNAM=enlightenment
enlightenmentVERSION=${enlightenmentVERSION:-0.22.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SRC_VERSION=$(echo $enlightenmentVERSION | tr _ -)
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$SRC_VERSION
tar xvf $CWD/$PRGNAM-$SRC_VERSION.tar.?z*
cd $PRGNAM-$SRC_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 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--disable-static \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
# Don't clobber config files on upgrade
mv $PKG/etc/enlightenment/sysactions.conf $PKG/etc/enlightenment/sysactions.conf.new
mv $PKG/etc/xdg/menus/e-applications.menu $PKG/etc/xdg/menus/e-applications.menu.new
# Handle the xinitrc file
mkdir -p $PKG/etc/X11/xinit
cat $CWD/xinitrc.enlightenment > $PKG/etc/X11/xinit/xinitrc.enlightenment.new
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
}
#end function
## for slackware not needed so I comment out, leaving in only for educatial purposes.
#
#mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
#cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
#cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
#mkdir -p $PKG/install
#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}
###
#################################################
### POST INSTALL IN ACCORDANCE WITH DEBAIN
## https://www.enlightenment.org/docs/distros/debian-start
####
#
#CALL FUNCATIONS
luey
luajity
bullets
elfy
enlightenmenty
cd $workingDIR
## added echo to prevent it, and only see it being put into action, without doing it. I am testing this on Void Linux
echo "
#As you are not installing to /usr but to /usr/local, you will have to ensure that some files are visible to dbus:
su -c "ln -s /usr/local/share/dbus-1/services/org.enlightenment.Ethumb.service /usr/share/dbus-1/services/org.enlightenment.Ethumb.service"
#You may also need to refresh your library path to make sure your apps can find the EFL libraries:
su -c "ldconfig"
" #end echo
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.