summaryrefslogtreecommitdiffstats
path: root/desktop/i3status/i3status.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/i3status/i3status.SlackBuild')
-rw-r--r--desktop/i3status/i3status.SlackBuild24
1 files changed, 17 insertions, 7 deletions
diff --git a/desktop/i3status/i3status.SlackBuild b/desktop/i3status/i3status.SlackBuild
index 0e5a0ceb2e..a8304c705a 100644
--- a/desktop/i3status/i3status.SlackBuild
+++ b/desktop/i3status/i3status.SlackBuild
@@ -25,7 +25,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=i3status
-VERSION=${VERSION:-2.12}
+VERSION=${VERSION:-2.13}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -71,10 +71,22 @@ 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 {} \;
-CFLAGS="$SLKCFLAGS" \
-LDFLAGS="-lm" \
-make
-make install DESTDIR=$PKG
+mkdir -p build
+( cd build
+ CFLAGS="$SLKCFLAGS" \
+ ../configure \
+ --prefix=/usr \
+ --libdir=/usr/lib$LIBDIRSUFFIX \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --build=$ARCH-slackware-linux
+
+ # V=1 makes build verbose
+ CFLAGS="$SLKCFLAGS" make V=1
+ make install-strip 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
@@ -82,8 +94,6 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
# Don't clobber the config file
mv $PKG/etc/i3status.conf $PKG/etc/i3status.conf.new
-mv $PKG/usr/share/man $PKG/usr/
-rmdir $PKG/usr/share
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