mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
desktop/awesome: Build with lua51.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
a6167ff0fd
commit
b1864df65a
1 changed files with 24 additions and 19 deletions
|
@ -22,11 +22,13 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# 20241019 bkw: Modified by SlackBuilds.org, BUILD=2: build with lua51.
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=awesome
|
||||
VERSION=${VERSION:-4.3}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
|
@ -38,9 +40,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
|
||||
|
@ -73,33 +72,39 @@ rm -rf $PRGNAM-$VERSION
|
|||
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
|
||||
cd $PRGNAM-$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 {} \+
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
# 20241020 bkw: it insists on running "lua" during the build, I don't see
|
||||
# a way to make it run "lua51" (which it *must* use), so fake it out by
|
||||
# messing with $PATH.
|
||||
mkdir -p tmplua
|
||||
ln -s /usr/bin/lua51 tmplua/lua
|
||||
export PATH=`pwd`/tmplua:$PATH
|
||||
|
||||
cmake \
|
||||
-DLUA_FOUND=ON \
|
||||
-DLUA_LIBRARY="/usr/lib$LIBDIRSUFFIX/liblua5.1.so" \
|
||||
-DLUA_INCLUDE_DIR="/usr/include/lua5.1" \
|
||||
-DLUA_VERSION_STRING="5.1" \
|
||||
-DLUA_VERSION_MAJOR="5" \
|
||||
-DLUA_VERSION_MINOR="1" \
|
||||
-DLUA_VERSION_PATCH="5" \
|
||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS -ldl -w -Wl,--allow-multiple-definition" \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DAWESOME_MAN_PATH=/usr/man \
|
||||
-DAWESOME_DOC_PATH=/usr/doc/$PRGNAM-$VERSION \
|
||||
-DSYSCONFDIR=/etc \
|
||||
-DCMAKE_BUILD_TYPE=Release ..
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
make VERBOSE=1
|
||||
make install/strip 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
|
||||
|
||||
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
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
mkdir -p $PKGDOC
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
|
Loading…
Reference in a new issue