diff options
Diffstat (limited to 'libraries/menu-cache/menu-cache.SlackBuild')
-rw-r--r-- | libraries/menu-cache/menu-cache.SlackBuild | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/libraries/menu-cache/menu-cache.SlackBuild b/libraries/menu-cache/menu-cache.SlackBuild index 7919816c1d..d1a3243595 100644 --- a/libraries/menu-cache/menu-cache.SlackBuild +++ b/libraries/menu-cache/menu-cache.SlackBuild @@ -25,7 +25,7 @@ # SUCH DAMAGE. PRGNAM=menu-cache -VERSION=${VERSION:-0.3.2} +VERSION=${VERSION:-20110722_c3b8c57} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -44,24 +44,25 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" - SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" + LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" - SLKLDFLAGS=""; LIBDIRSUFFIX="" + LIBDIRSUFFIX="" fi -set -e +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z cd $PRGNAM-$VERSION chown -R root:root . find . \ @@ -70,7 +71,8 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -LDFLAGS="$SLKLDFLAGS" \ +sh autogen.sh + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -79,21 +81,16 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --sysconfdir=/etc \ --mandir=/usr/man \ - --disable-static \ + --enable-static=no \ --program-prefix= \ --program-suffix= \ - --build=$ARCH-slackware-linux \ - -make -make install DESTDIR=$PKG + --build=$ARCH-slackware-linux -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +make +make install-strip DESTDIR=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - AUTHORS INSTALL README \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |