|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
# Build script for Slackware
|
|
|
|
|
# Copyright (C) 2011,2012,2013,2014,2015,2016 Damien Goutte-Gattat
|
|
|
|
|
# Copyright (C) 2011-2017 Damien Goutte-Gattat
|
|
|
|
|
#
|
|
|
|
|
# Redistribution and use of this script, with or without modifications,
|
|
|
|
|
# is permitted provided that the following conditions are met:
|
|
|
|
@ -22,16 +22,15 @@
|
|
|
|
|
#
|
|
|
|
|
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
|
|
|
|
|
#
|
|
|
|
|
# Latest awesome sourcecode is available at:
|
|
|
|
|
# <http://awesome.naquadah.org/>.
|
|
|
|
|
# Latest awesome sourcecode is available at: <https://awesomewm.org/>.
|
|
|
|
|
#
|
|
|
|
|
# Depends: l/libxdg-basedir, l/lgi
|
|
|
|
|
# Depends: l/libxdg-basedir, l/lgi, l/xcb-util-xrm, l/libxkbcommon
|
|
|
|
|
|
|
|
|
|
# Source package infos
|
|
|
|
|
NAMESRC=${NAMESRC:-awesome}
|
|
|
|
|
VERSION=${VERSION:-3.5.9}
|
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
|
|
|
|
|
WGET=${WGET:-http://awesome.naquadah.org/download/$ARCHIVE}
|
|
|
|
|
VERSION=${VERSION:-4.1}
|
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.xz}
|
|
|
|
|
WGET=${WGET:-https://github.com/awesomeWM/awesome-releases/raw/master/$ARCHIVE}
|
|
|
|
|
|
|
|
|
|
# Build infos
|
|
|
|
|
NAMEPKG=${NAMEPKG:-awesome}
|
|
|
|
@ -63,7 +62,7 @@ if [ ! -r $ARCHIVE ]; then
|
|
|
|
|
wget -c -O $ARCHIVE.part "$WGET"
|
|
|
|
|
mv $ARCHIVE.part $ARCHIVE
|
|
|
|
|
fi
|
|
|
|
|
sha1sum -c $ARCHIVE.sha1
|
|
|
|
|
sha256sum -c $ARCHIVE.sha256
|
|
|
|
|
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
|
|
|
|
|
|
|
|
|
|
# Compile
|
|
|
|
@ -101,12 +100,20 @@ sed -i 's/Exec=awesome/Exec=startawesome/' $PKG/usr/share/xsessions/awesome.desk
|
|
|
|
|
mv $PKG/etc/xdg/awesome/rc.lua $PKG/etc/xdg/awesome/rc.lua.new
|
|
|
|
|
|
|
|
|
|
# Install docs forgotten by make install
|
|
|
|
|
install -m 644 ../PATCHES ../STYLE $PKG/usr/doc/$NAME
|
|
|
|
|
install -m 644 ../docs/{03,04,07,16,17,89,90}-*.md $PKG/usr/doc/$NAME
|
|
|
|
|
|
|
|
|
|
# Copy slack-desc and doinst.sh files
|
|
|
|
|
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
|
|
|
|
|
install -m 755 $CWD/doinst.sh $PKG/install/doinst.sh
|
|
|
|
|
|
|
|
|
|
# Add dependency infos
|
|
|
|
|
cat <<EOF > $PKG/install/slack-required
|
|
|
|
|
libxdg-basedir
|
|
|
|
|
libxkbcommon
|
|
|
|
|
lgi
|
|
|
|
|
xcb-util-xrm
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
# Package the tree
|
|
|
|
|
cd $PKG
|
|
|
|
|
mkdir -p $OUT
|
|
|
|
|