xap/awesome: Upgraded to awesome-4.1.

slackware-14.2
Damien Goutte-Gattat 6 years ago
parent cf962b4d2a
commit fb791153cd

@ -1 +0,0 @@
3fc91f6b4d4dc5f69b4db18d12fad832542558d6 awesome-3.5.9.tar.bz2

@ -0,0 +1 @@
27a1db13ef4aa8e104a795e8c11c8611d75d8b0d864c277b8ef7c6f1ab6d04b8 awesome-4.1.tar.xz

@ -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

Loading…
Cancel
Save