summaryrefslogtreecommitdiff
path: root/development/pkgconf/pkgconf.SlackBuild
diff options
context:
space:
mode:
authorHunter Sezen <orbea@fredslev.dk>2018-07-20 12:19:50 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-07-21 06:53:32 +0700
commitd6a79b06ec6b9ab36f4f4157f2ac03e2f73b72a0 (patch)
tree3e8cd6bc3e449eb72033a8b3c938987d29cee737 /development/pkgconf/pkgconf.SlackBuild
parente1320379fca7eef426ad52f3b2ae621018898913 (diff)
downloadslackbuilds-d6a79b06ec6b9ab36f4f4157f2ac03e2f73b72a0.tar.gz
development/pkgconf: Updated for version 1.5.2.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/pkgconf/pkgconf.SlackBuild')
-rw-r--r--development/pkgconf/pkgconf.SlackBuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/development/pkgconf/pkgconf.SlackBuild b/development/pkgconf/pkgconf.SlackBuild
index 6658ef633f..39bcc478c9 100644
--- a/development/pkgconf/pkgconf.SlackBuild
+++ b/development/pkgconf/pkgconf.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pkgconf
-VERSION=${VERSION:-1.5.1}
+VERSION=${VERSION:-1.5.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,6 +69,11 @@ 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 {} \;
+[ "${DEBUG:=0}" != 0 ] && \
+ SLKCFLAGS="$(printf %s "$SLKCFLAGS" | sed 's/-O2/-O0 -g/')"
+
+autoreconf -fi
+
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
@@ -85,8 +90,10 @@ make install DESTDIR=$PKG
( cd $PKG/usr/bin; ln -sf $PRGNAM pkg-config )
-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
+if [ "$DEBUG" = 0 ]; then
+ 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
+fi
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done