summaryrefslogtreecommitdiff
path: root/academic/units/units.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/units/units.SlackBuild')
-rw-r--r--academic/units/units.SlackBuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/academic/units/units.SlackBuild b/academic/units/units.SlackBuild
index cc4052b417..af071ad929 100644
--- a/academic/units/units.SlackBuild
+++ b/academic/units/units.SlackBuild
@@ -25,8 +25,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=units
-VERSION=2.00
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-2.02}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -65,9 +65,11 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
-
-patch -p1 < $CWD/destdir-fix.patch
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -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 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \