diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-11 12:31:59 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-16 12:11:19 +0700 |
commit | 8ee8badbe4ac16feec03eee0ed3b4a6bda18603f (patch) | |
tree | 9f7a5d2e53cc0d875e14bb0dfc5e320028e6790e /system/foomatic-db | |
parent | 824a9fe8879b923fd173454cd5dcab339166784a (diff) |
system/foomatic-db: Fix doc perms, PPD symlink.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/foomatic-db')
-rw-r--r-- | system/foomatic-db/foomatic-db.SlackBuild | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/system/foomatic-db/foomatic-db.SlackBuild b/system/foomatic-db/foomatic-db.SlackBuild index 0749710e82817..97d2f4630eb41 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 |