aboutsummaryrefslogtreecommitdiff
path: root/libraries/libdesktop-agnostic/libdesktop-agnostic.SlackBuild
diff options
context:
space:
mode:
authorRyan P.C. McQuen <ryan.q@linux.com>2015-05-05 07:39:08 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-05-10 07:05:04 +0700
commit640b4cbcb101ac23f587d3fab251a59b52d2dfe0 (patch)
treec8429b45bee00115e07fa8c672b13a0776b31780 /libraries/libdesktop-agnostic/libdesktop-agnostic.SlackBuild
parent5f55622a5674bd62b5e4c584b39d3676e7a749d5 (diff)
libraries/libdesktop-agnostic: Updated for version 20150505.
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
Diffstat (limited to 'libraries/libdesktop-agnostic/libdesktop-agnostic.SlackBuild')
-rw-r--r--libraries/libdesktop-agnostic/libdesktop-agnostic.SlackBuild17
1 files changed, 11 insertions, 6 deletions
diff --git a/libraries/libdesktop-agnostic/libdesktop-agnostic.SlackBuild b/libraries/libdesktop-agnostic/libdesktop-agnostic.SlackBuild
index d56230ef4db3e..00ad1a29f2a39 100644
--- a/libraries/libdesktop-agnostic/libdesktop-agnostic.SlackBuild
+++ b/libraries/libdesktop-agnostic/libdesktop-agnostic.SlackBuild
@@ -27,7 +27,8 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libdesktop-agnostic
-VERSION=${VERSION:-0.3.94}
+VERSION=${VERSION:-20150505}
+SRCVERSION=${SRCVERSION:-83a5ab15dc8889a280a83ae2609d1e0d80676bab}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -63,15 +64,19 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/v$VERSION.tar.?z* || tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-$SRCVERSION
+if [ -e $CWD/$SRCVERSION.tar.gz ]; then
+ tar xvf $CWD/$SRCVERSION.tar.gz
+else
+ tar xvf $CWD/$PRGNAM-$SRCVERSION.tar.gz
+fi
+cd $PRGNAM-$SRCVERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \