summaryrefslogtreecommitdiff
path: root/libraries/libevhtp/libevhtp.SlackBuild
diff options
context:
space:
mode:
authorMarcel Saegebarth <marc@mos6581.de>2015-11-05 10:31:39 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-11-07 10:33:29 +0700
commita15de45fc6cab4a98f7897ca7f066a723ad947b1 (patch)
tree12bda197b44deda4acfe797d692329164aeb0152 /libraries/libevhtp/libevhtp.SlackBuild
parentc0ddb034966aa58b59691374e17e3d877d8ec392 (diff)
downloadslackbuilds-a15de45fc6cab4a98f7897ca7f066a723ad947b1.tar.gz
libraries/libevhtp: Updated for version 1.2.11.
Signed-off-by: Marcel Saegebarth <marc@mos6581.de>
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