diff options
Diffstat (limited to 'libraries/libdesktop-agnostic/libdesktop-agnostic.SlackBuild')
-rw-r--r-- | libraries/libdesktop-agnostic/libdesktop-agnostic.SlackBuild | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/libraries/libdesktop-agnostic/libdesktop-agnostic.SlackBuild b/libraries/libdesktop-agnostic/libdesktop-agnostic.SlackBuild index d56230ef4d..00ad1a29f2 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" \ |