summaryrefslogtreecommitdiff
path: root/misc/owfs/owfs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'misc/owfs/owfs.SlackBuild')
-rw-r--r--misc/owfs/owfs.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/misc/owfs/owfs.SlackBuild b/misc/owfs/owfs.SlackBuild
index a11a046a67..c387a9aaa8 100644
--- a/misc/owfs/owfs.SlackBuild
+++ b/misc/owfs/owfs.SlackBuild
@@ -5,7 +5,7 @@
# Written by MrJackson mrjackson@gmail.com
PRGNAM=owfs
-VERSION=${VERSION:-2.8p18}
+VERSION=${VERSION:-2.8p20}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -59,11 +59,17 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
+ --with-fuseinclude=/usr/include \
+ --with-fuselib=/usr/lib$LIBDIRSUFFIX \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
+# Install paths needed else perl modules get installed in /usr/local. :/
+make install \
+ INSTALLDIRS=vendor \
+ INSTALLVENDORMAN3DIR=/usr/man/man3 \
+ DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -71,7 +77,6 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-# Remove perllocal.pod and other special files; remove empty directories
find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
find $PKG -depth -type d -empty -delete || true
@@ -81,7 +86,6 @@ cp -a \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-# Copy the slack-desc (and a custom doinst.sh if necessary) into ./install
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc