summaryrefslogtreecommitdiff
path: root/development/dwarf/dwarf.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/dwarf/dwarf.SlackBuild')
-rw-r--r--development/dwarf/dwarf.SlackBuild18
1 files changed, 11 insertions, 7 deletions
diff --git a/development/dwarf/dwarf.SlackBuild b/development/dwarf/dwarf.SlackBuild
index 63c4394d06..b78cd7c3fe 100644
--- a/development/dwarf/dwarf.SlackBuild
+++ b/development/dwarf/dwarf.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=dwarf
-VERSION=${VERSION:-20180129}
+VERSION=${VERSION:-20180809}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -61,7 +61,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/libdwarf-$VERSION.tar.gz
-cd $PRGNAM-$VERSION/libdwarf
+cd libdwarf-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -72,20 +72,24 @@ find -L . \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="-I/usr/include/libelf $SLKCFLAGS" \
./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --mandir=/usr/man \
--enable-shared \
--build=$ARCH-slackware-linux
+cd libdwarf
make
+make install DESTDIR=$PKG
-# There is no make install
-mkdir -p $PKG/usr/lib${LIBDIRSUFFIX} $PKG/usr/include $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a libdwarf.so $PKG/usr/lib${LIBDIRSUFFIX}
-cp -a dwarf.h libdwarf.h $PKG/usr/include
+rm -f $PKG/usr/lib${LIBDIRSUFFIX}/libdwarf.{a,la}
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
-cp -a README NEWS COPYING CODINGSTYLE CHANGES $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/share/libdwarf/libdwarf-devel/* $PKG/usr/doc/$PRGNAM-$VERSION
+rm -rf $PKG/usr/share
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install