aboutsummaryrefslogtreecommitdiff
path: root/system/gphotofs
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2022-12-27 18:25:56 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-12-31 09:14:50 +0700
commit57657693bd21dcc4a661b787b6a0401d30ea70a4 (patch)
tree58d2ab8751cbce8c833860074baf2212a5f9f612 /system/gphotofs
parent9a18ab78cfa987ff33ee4802ec0fc774d7d1f919 (diff)
system/gphotofs: Fix doc permissions.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/gphotofs')
-rw-r--r--system/gphotofs/gphotofs.SlackBuild15
1 files changed, 9 insertions, 6 deletions
diff --git a/system/gphotofs/gphotofs.SlackBuild b/system/gphotofs/gphotofs.SlackBuild
index fbafcd0bc07d2..c9179edc21cf0 100644
--- a/system/gphotofs/gphotofs.SlackBuild
+++ b/system/gphotofs/gphotofs.SlackBuild
@@ -6,11 +6,14 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20221227 bkw: BUILD=2, fix permissions on README.fstab (don't use cp-a
+# to copy files from $CWD, they might be owned by anybody).
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gphotofs
VERSION=${VERSION:-0.5}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -75,11 +78,11 @@ make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/man/man1
gzip -9c $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS COPYING ChangeLog NEWS README $CWD/README.fstab \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp -a AUTHORS COPYING ChangeLog NEWS README $PKGDOC
+cat $CWD/README.fstab > $PKGDOC/README.fstab
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc