diff options
Diffstat (limited to 'system/lirc/lirc.SlackBuild')
-rw-r--r-- | system/lirc/lirc.SlackBuild | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/system/lirc/lirc.SlackBuild b/system/lirc/lirc.SlackBuild index c07a4ce180..3ce16f127d 100644 --- a/system/lirc/lirc.SlackBuild +++ b/system/lirc/lirc.SlackBuild @@ -25,11 +25,15 @@ # Modified for 0.9.3a by Jeremy Hansen <jebrhansen+SBo -at- gmail.com> +# 20211121 bkw: BUILD=3. install all docs to +# /usr/doc/$PRGNAM-$VERSION, instead of /usr/share/doc/$PRGNAM. Also +# don't include useless INSTALL in doc dir. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=lirc VERSION=${VERSION:-0.9.3a} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -100,7 +104,10 @@ CXXFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux make -j1 -make install DESTDIR=$PKG + +# 20211121 bkw: the top-level Makefile doesn't pass docdir to +# doc/Makefile, unless we set it here also. +make install DESTDIR=$PKG docdir=/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/lib/udev/rules.d cat contrib/lirc.rules > $PKG/lib/udev/rules.d/96-lirc.rules @@ -119,14 +126,15 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r # This is an empty file :| rm -f $PKG/usr/man/man1/smode2.1.gz -# Fixup doc owner & mode -chown -R root:root $PKG/usr/share/doc/lirc/lirc.org/api-docs -chmod -R go-w $PKG/usr/share/doc/lirc/lirc.org/api-docs +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \ - doc/{html,irxevent.keys} $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +# HTML docs are already installed in $PKGDOC/html +cp -a AUTHORS COPYING ChangeLog NEWS README doc/irxevent.keys $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild + +# Fixup doc owner & mode +chown -R root:root $PKGDOC +chmod -R go-w $PKGDOC mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |