summaryrefslogtreecommitdiffstats
path: root/academic/nco/nco.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/nco/nco.SlackBuild')
-rw-r--r--academic/nco/nco.SlackBuild14
1 files changed, 7 insertions, 7 deletions
diff --git a/academic/nco/nco.SlackBuild b/academic/nco/nco.SlackBuild
index f1c799ad96..202f45a72e 100644
--- a/academic/nco/nco.SlackBuild
+++ b/academic/nco/nco.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for nco
-# Copyright 2020-2022 Gregory J. L. Tourte <artourter@gmail.com>
+# Copyright 2020-2024 Gregory J. L. Tourte <artourter@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,8 +26,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=nco
-VERSION=${VERSION:-5.1.0}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-5.2.2}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -75,10 +75,8 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
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 \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -115,6 +113,8 @@ rm -f $PKG/usr/lib*/*.la
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+cat $CWD/douninst.sh > $PKG/install/douninst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE