summaryrefslogtreecommitdiff
path: root/libraries/libevhtp/libevhtp.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libevhtp/libevhtp.SlackBuild')
-rw-r--r--libraries/libevhtp/libevhtp.SlackBuild15
1 files changed, 13 insertions, 2 deletions
diff --git a/libraries/libevhtp/libevhtp.SlackBuild b/libraries/libevhtp/libevhtp.SlackBuild
index 57d12c71d0..65e9b709a8 100644
--- a/libraries/libevhtp/libevhtp.SlackBuild
+++ b/libraries/libevhtp/libevhtp.SlackBuild
@@ -25,8 +25,8 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libevhtp
-VERSION=${VERSION:-1.2.10}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.2.11}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -71,6 +71,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# fix wrong version number
+sed -i "s/@PROJECT_VERSION@/${VERSION}/" evhtp.pc.in
+
mkdir -p build
cd build
cmake \
@@ -85,6 +88,14 @@ cd build
make install/strip DESTDIR=$PKG
cd ..
+if [ "$ARCH" = "x86_64" ]; then
+ (
+ cd $PKG
+ mv usr/lib/pkgconfig usr/lib${LIBDIRSUFFIX}
+ rm -rf usr/lib
+ )
+fi
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ChangeLog LICENSE README.markdown $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild