mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
libraries/commoncpp2: Updated for version 1.7.3
This commit is contained in:
parent
c1ae51ec04
commit
a2ac23382d
2 changed files with 8 additions and 2 deletions
|
@ -35,10 +35,13 @@ OUTPUT=${OUTPUT:-/tmp}
|
|||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
@ -73,6 +76,7 @@ CFLAGS="$SLKCFLAGS -I." \
|
|||
CXXFLAGS="$SLKCFLAGS -I." \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--infodir=/usr/info \
|
||||
|
@ -89,7 +93,7 @@ make install DESTDIR=$PKG
|
|||
mv doc/man $PKG/usr
|
||||
|
||||
# Remove static libraries
|
||||
rm $PKG/usr/lib/*a
|
||||
rm $PKG/usr/lib${LIBDIRSUFFIX}/*a
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
||||
|
@ -121,4 +125,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}
|
||||
|
|
|
@ -2,7 +2,9 @@ PRGNAM="commoncpp2"
|
|||
VERSION="1.7.3"
|
||||
HOMEPAGE="http://www.gnutelephony.org/"
|
||||
DOWNLOAD="http://www.gnutelephony.org/dist/archive/commoncpp2-1.7.3.tar.gz"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM="ca741179a728d264eb276ae471ebaf70"
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Mauro Giachero"
|
||||
EMAIL="mauro dot giachero at gmail dot com"
|
||||
APPROVED="dsomero"
|
||||
|
|
Loading…
Reference in a new issue