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
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "x86_64" ]; then
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
SLKCFLAGS="-O2 -fPIC"
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
@ -73,6 +76,7 @@ CFLAGS="$SLKCFLAGS -I." \
|
||||||
CXXFLAGS="$SLKCFLAGS -I." \
|
CXXFLAGS="$SLKCFLAGS -I." \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
|
@ -89,7 +93,7 @@ make install DESTDIR=$PKG
|
||||||
mv doc/man $PKG/usr
|
mv doc/man $PKG/usr
|
||||||
|
|
||||||
# Remove static libraries
|
# Remove static libraries
|
||||||
rm $PKG/usr/lib/*a
|
rm $PKG/usr/lib${LIBDIRSUFFIX}/*a
|
||||||
|
|
||||||
( cd $PKG
|
( cd $PKG
|
||||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
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
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
||||||
cd $PKG
|
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"
|
VERSION="1.7.3"
|
||||||
HOMEPAGE="http://www.gnutelephony.org/"
|
HOMEPAGE="http://www.gnutelephony.org/"
|
||||||
DOWNLOAD="http://www.gnutelephony.org/dist/archive/commoncpp2-1.7.3.tar.gz"
|
DOWNLOAD="http://www.gnutelephony.org/dist/archive/commoncpp2-1.7.3.tar.gz"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM="ca741179a728d264eb276ae471ebaf70"
|
MD5SUM="ca741179a728d264eb276ae471ebaf70"
|
||||||
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Mauro Giachero"
|
MAINTAINER="Mauro Giachero"
|
||||||
EMAIL="mauro dot giachero at gmail dot com"
|
EMAIL="mauro dot giachero at gmail dot com"
|
||||||
APPROVED="dsomero"
|
APPROVED="dsomero"
|
||||||
|
|
Loading…
Reference in a new issue