summaryrefslogtreecommitdiffstats
path: root/multimedia/ivtv-utils/ivtv-utils.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/ivtv-utils/ivtv-utils.SlackBuild')
-rw-r--r--multimedia/ivtv-utils/ivtv-utils.SlackBuild18
1 files changed, 10 insertions, 8 deletions
diff --git a/multimedia/ivtv-utils/ivtv-utils.SlackBuild b/multimedia/ivtv-utils/ivtv-utils.SlackBuild
index 2203ec4591..cea9578bb8 100644
--- a/multimedia/ivtv-utils/ivtv-utils.SlackBuild
+++ b/multimedia/ivtv-utils/ivtv-utils.SlackBuild
@@ -22,11 +22,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20231030 bkw: modified by SlackBuilds.org, BUILD=2:
+# - add missing SlackBuild to /usr/doc dir.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ivtv-utils
VERSION=${VERSION:-1.4.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +41,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# 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
@@ -76,9 +76,9 @@ tar xvf $CWD/ivtv-firmware-20080701.tar.gz
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 {} \+
# Use SLKCFLAGS
sed -i "/^C.*.*FLAGS/s/=/+=/" Makefile
@@ -100,8 +100,10 @@ for file in \
install -D -m644 $file $PKG/lib/firmware/$file
done
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING* ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
+cp -a COPYING* ChangeLog README $PKGDOC
# N.B. Remove stuff that clobbers existing files - thanks Arch Linux:
# Already provided by kernel headers