diff options
author | Dugan Chen <thedoogster [at] gmail [dot] com> | 2017-04-02 12:30:17 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-04-06 21:02:36 +0700 |
commit | 2ec7f347cafd508fb901349bacc1e4361701f810 (patch) | |
tree | fdbf4f961253dd342dcc4699355d0a9bb22ab18e /desktop/tint2/tint2.SlackBuild | |
parent | 29d39a893428f8092753a387c95915b0bed18996 (diff) |
desktop/tint2: Updated for version 0.14.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/tint2/tint2.SlackBuild')
-rw-r--r-- | desktop/tint2/tint2.SlackBuild | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/desktop/tint2/tint2.SlackBuild b/desktop/tint2/tint2.SlackBuild index 04e15d4e74cab..87f2d1360f30d 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 |