aboutsummaryrefslogtreecommitdiff
path: root/multimedia/anyremote/anyremote.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/anyremote/anyremote.SlackBuild')
-rw-r--r--multimedia/anyremote/anyremote.SlackBuild21
1 files changed, 7 insertions, 14 deletions
diff --git a/multimedia/anyremote/anyremote.SlackBuild b/multimedia/anyremote/anyremote.SlackBuild
index 7c41f2b2eca2..d08117786c71 100644
--- a/multimedia/anyremote/anyremote.SlackBuild
+++ b/multimedia/anyremote/anyremote.SlackBuild
@@ -5,16 +5,14 @@
# Written by otzy_007 (oz@oprod.net)
PRGNAM=anyremote
-VERSION=${VERSION:-5.1.3}
+VERSION=${VERSION:-5.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -61,6 +59,7 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
make
@@ -69,23 +68,17 @@ make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( cd $PKG
- find . -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f
-)
+find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f
-# Workaround stupid broken Makefile.
+# --mandir is ignored, it seems
mv $PKG/usr/share/man $PKG/usr
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION
-rm -rf $PKG/usr/share/doc
-cp -a \
- README INSTALL TODO NEWS AUTHORS COPYING ChangeLog doc-html \
- $PKG/usr/doc/$PRGNAM-$VERSION
+# Add a few missed docs
+cp -a INSTALL TODO NEWS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} \ No newline at end of file
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}