diff options
Diffstat (limited to 'system/cpmtools/cpmtools.SlackBuild')
-rw-r--r-- | system/cpmtools/cpmtools.SlackBuild | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/system/cpmtools/cpmtools.SlackBuild b/system/cpmtools/cpmtools.SlackBuild index 6dc888f8fe..d8f2e7730e 100644 --- a/system/cpmtools/cpmtools.SlackBuild +++ b/system/cpmtools/cpmtools.SlackBuild @@ -6,6 +6,11 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20250308 bkw: BUILD=2. +# - fix bug reported by Zbigniew (--with-diskdefs). +# - rename /usr/share/diskdefs to /usr/share/cpmtools. +# - fix FILES paths in man pages. + # 20230819 bkw: updated for v2.24. # 20221227 bkw: updated for v2.23. # 20201102 bkw: @@ -17,7 +22,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=cpmtools VERSION=${VERSION:-2.24} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -61,12 +66,20 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ - \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + + +# 20250308 bkw: even though there's a --with-diskdefs option, the +# install path doesn't respect it. +sed -i "s,\(@datarootdir@.\)diskdefs,\1$PRGNAM," Makefile.in + +# 20250308 bkw: man pages have the same problem. +sed -i "s,@DATADIR@/diskdefs,/usr/share/$PRGNAM/diskdefs," *.1.in CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ + --with-diskdefs=/usr/share/$PRGNAM/diskdefs \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ @@ -76,7 +89,7 @@ CXXFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux # 'make install' fails to create this: -mkdir -p $PKG/usr/share/diskdefs +mkdir -p $PKG/usr/share/$PRGNAM make install DESTDIR=$PKG # binaries already stripped, yay! gzip $PKG/usr/man/man?/*.? |