summaryrefslogtreecommitdiff
path: root/libraries/c-ares
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/c-ares')
-rw-r--r--libraries/c-ares/README2
-rw-r--r--libraries/c-ares/c-ares.SlackBuild16
-rw-r--r--libraries/c-ares/c-ares.info8
3 files changed, 17 insertions, 9 deletions
diff --git a/libraries/c-ares/README b/libraries/c-ares/README
index bf9bbb5c09..24b19f7eeb 100644
--- a/libraries/c-ares/README
+++ b/libraries/c-ares/README
@@ -1,3 +1,3 @@
c-ares is a C library that performs DNS requests and name resolves
asynchronously. c-ares is a fork of the original library named 'ares',
-written by Greg Hudson at MIT. \ No newline at end of file
+written by Greg Hudson at MIT.
diff --git a/libraries/c-ares/c-ares.SlackBuild b/libraries/c-ares/c-ares.SlackBuild
index 59e4a5f6b6..141b7f1ca2 100644
--- a/libraries/c-ares/c-ares.SlackBuild
+++ b/libraries/c-ares/c-ares.SlackBuild
@@ -5,9 +5,9 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=c-ares
-VERSION=${VERSION:-1.6.0}
+VERSION=${VERSION:-1.7.0}
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -48,12 +48,18 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--disable-static \
- --enable-shared \
--disable-debug \
--build=$ARCH-slackware-linux
make
-make install-strip DESTDIR=$PKG
+make install DESTDIR=$PKG
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+)
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
@@ -71,4 +77,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/libraries/c-ares/c-ares.info b/libraries/c-ares/c-ares.info
index 27f9e7a44a..711cf18e85 100644
--- a/libraries/c-ares/c-ares.info
+++ b/libraries/c-ares/c-ares.info
@@ -1,8 +1,10 @@
PRGNAM="c-ares"
-VERSION="1.6.0"
+VERSION="1.7.0"
HOMEPAGE="http://c-ares.haxx.se/"
-DOWNLOAD="http://c-ares.haxx.se/c-ares-1.6.0.tar.gz"
-MD5SUM="4503b0db3dd79d3c1f58d87722dbab46"
+DOWNLOAD="http://c-ares.haxx.se/c-ares-1.7.0.tar.gz"
+MD5SUM="15ab7852306b554b0b1145f41005a3bb"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
MAINTAINER="Larry Hajali"
EMAIL="larryhaja[at]gmail[dot]com"
APPROVED="dsomero"