diff options
Diffstat (limited to 'system/profile-cleaner/profile-cleaner.SlackBuild')
-rw-r--r-- | system/profile-cleaner/profile-cleaner.SlackBuild | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/system/profile-cleaner/profile-cleaner.SlackBuild b/system/profile-cleaner/profile-cleaner.SlackBuild index 46f89d25f4..b8d606bed5 100644 --- a/system/profile-cleaner/profile-cleaner.SlackBuild +++ b/system/profile-cleaner/profile-cleaner.SlackBuild @@ -24,18 +24,19 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20240331 bkw: Modified by SlackBuilds.org, BUILD=2: +# - install zsh function to /usr/share/zsh, not /usr/zsh. +# - remove INSTALL from doc dir (no useful info for package users). + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=profile-cleaner VERSION=${VERSION:-2.35} ARCH=noarch -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -56,16 +57,17 @@ 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 \ + -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 {} + + +sed -i '/MANDIR/s#/share##g' Makefile -sed -i 's#/share##g' Makefile make make install DESTDIR=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a INSTALL LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir $PKG/install |