From 2ec7f347cafd508fb901349bacc1e4361701f810 Mon Sep 17 00:00:00 2001 From: Dugan Chen Date: Sun, 2 Apr 2017 12:30:17 +0700 Subject: desktop/tint2: Updated for version 0.14.1. Signed-off-by: Willy Sudiarto Raharjo --- desktop/tint2/tint2.SlackBuild | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) (limited to 'desktop/tint2/tint2.SlackBuild') diff --git a/desktop/tint2/tint2.SlackBuild b/desktop/tint2/tint2.SlackBuild index 04e15d4e74..87f2d1360f 100644 --- a/desktop/tint2/tint2.SlackBuild +++ b/desktop/tint2/tint2.SlackBuild @@ -6,10 +6,10 @@ # You are free to modify or redistribute this in any way you wish. PRGNAM=tint2 -VERSION=${VERSION:-0.12.12} +VERSION=${VERSION:-0.14.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -COMMIT=${COMMIT:-e9d6ec9f2301e88857ffa7b287a4a3eb36543940} +COMMIT=${COMMIT:-6cde7bef1e698c924f4c7fd65b71dd69e6173909} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -34,19 +34,15 @@ else SLKCFLAGS="-O2" fi -# A GTK+2 theme switcher for tint2 -TINT2CONF_BUILD=${TINT2CONF_BUILD:-ON} -# Battery status plugin -BATTERY_PLUGIN=${BATTERY_PLUGIN:-ON} - set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf ${PRGNAM}-${VERSION} -tar xvf $CWD/${PRGNAM}_${VERSION}.orig.tar.gz -cd ${PRGNAM}-${VERSION}-${COMMIT} +SRCDIR=${PRGNAM}-v${VERSION}-${COMMIT} +rm -rf $SRCDIR +tar xvf ${CWD}/${SRCDIR}.tar.bz2 +cd ${SRCDIR} chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -60,19 +56,17 @@ cd build -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DMANDIR=/usr/man \ - -DDOCDIR=/usr/doc/$PRGNAM-$VERSION \ - -DENABLE_TINT2CONF:BOOL=$TINT2CONF_BUILD \ - -DENABLE_BATTERY:BOOL=$BATTERY_PLUGIN \ -DCMAKE_BUILD_TYPE=Release .. make make DESTDIR=$PKG install cd .. +mv $PKG/usr/share/{doc,man} $PKG/usr +mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/${PRGNAM}-${VERSION} + mv $PKG/etc/xdg/tint2/tint2rc $PKG/etc/xdg/tint2/tint2rc.new -# Strip binaries find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -- cgit v1.2.3