summaryrefslogtreecommitdiffstats
path: root/system/foomatic-db/foomatic-db.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/foomatic-db/foomatic-db.SlackBuild')
-rw-r--r--system/foomatic-db/foomatic-db.SlackBuild18
1 files changed, 11 insertions, 7 deletions
diff --git a/system/foomatic-db/foomatic-db.SlackBuild b/system/foomatic-db/foomatic-db.SlackBuild
index 0749710e82..97d2f4630e 100644
--- a/system/foomatic-db/foomatic-db.SlackBuild
+++ b/system/foomatic-db/foomatic-db.SlackBuild
@@ -22,19 +22,20 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220411 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - fix doc permissions.
+# - use relative symlink.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=foomatic-db
VERSION=${VERSION:-20170729}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
-# 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
@@ -55,17 +56,20 @@ 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 {} \+
./configure \
--prefix=/usr
make install DESTDIR=$PKG
+# 20220411 bkw: absolute symlinks are best avoided.
+ln -sf ../../foomatic/db/source/PPD $PKG/usr/share/cups/model/foomatic-db-ppds
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING ChangeLog README USAGE $PKG/usr/doc/$PRGNAM-$VERSION
+install -m0644 COPYING ChangeLog README USAGE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install