diff options
Diffstat (limited to 'system/tdb-addition/tdb-addition.SlackBuild')
-rw-r--r-- | system/tdb-addition/tdb-addition.SlackBuild | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/system/tdb-addition/tdb-addition.SlackBuild b/system/tdb-addition/tdb-addition.SlackBuild index 766367e95e792..db7ba0c06a6da 100644 --- a/system/tdb-addition/tdb-addition.SlackBuild +++ b/system/tdb-addition/tdb-addition.SlackBuild @@ -27,6 +27,7 @@ PRGNAM=tdb-addition VERSION=${VERSION:-1.2.12} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + SRCNAM=samba SRCVER=4.1.0 @@ -59,7 +60,9 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $SRCNAM-$SRCVER -tar xvf $CWD/$SRCNAM-$SRCVER.tar.?z* +tar xvf $CWD/$SRCNAM-$SRCVER.tar.?z* \ + $SRCNAM-$SRCVER/lib/tdb/include/tdb.h \ + $SRCNAM-$SRCVER/lib/tdb/tdb.pc.in # Install the missing header install -m 0644 -D $SRCNAM-$SRCVER/lib/tdb/include/tdb.h \ @@ -67,8 +70,18 @@ install -m 0644 -D $SRCNAM-$SRCVER/lib/tdb/include/tdb.h \ # Add the missing library link mkdir -p $PKG/usr/lib$LIBDIRSUFFIX -( cd $PKG/usr/lib$LIBDIRSUFFIX - ln -s libtdb.so.$VERSION libtdb.so ) +ln -s libtdb.so.$VERSION $PKG/usr/lib${LIBDIRSUFFIX}/libtdb.so + +# Add the pkgconfig file +mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig +sed $SRCNAM-$SRCVER/lib/tdb/tdb.pc.in \ + -e s,@prefix@,/usr, \ + -e s,@exec_prefix@,${prefix}, \ + -e s,@libdir@,${prefix}/lib${LIBDIRSUFFIX}, \ + -e s,@includedir@,${prefix}/include, \ + -e s,@PACKAGE_VERSION@,$VERSION, \ + -e s^@LIB_RPATH@^-Wl,-rpath,/usr/lib$LIBDIRSUFFIX^ \ + > $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/tdb.pc install -m 0644 -D $CWD/$PRGNAM.SlackBuild \ $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |