diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-17 12:09:07 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-17 12:09:07 -0400 |
commit | 73dabc0b6a49daed8ba2aab60ce1c0bdc4be912a (patch) | |
tree | d5654850af37bdae3b104dd93379db4b331cde77 /libraries/libsieve | |
parent | e30158d6f2c06bb47b012c2f3a01b6147060c22e (diff) |
libraries/libsieve: Strip binaries, fix tarball handling.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/libsieve')
-rw-r--r-- | libraries/libsieve/libsieve.SlackBuild | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/libraries/libsieve/libsieve.SlackBuild b/libraries/libsieve/libsieve.SlackBuild index 5fd23e166a7e9..4a473fdd693a6 100644 --- a/libraries/libsieve/libsieve.SlackBuild +++ b/libraries/libsieve/libsieve.SlackBuild @@ -23,25 +23,27 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220417 bkw: Modified by SlackBuilds.org, BUILD=2: +# - strip library. +# - fix tarball handling. +# - i486 => i586. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libsieve VERSION=${VERSION:-2.3.1} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -51,8 +53,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -67,18 +69,26 @@ fi set -e +# 20220417 bkw: every time the file gets downloaded with wget, I get +# a different set of CGI parameters added to the filename. That's +# OK, but if there are multiple copies of the file, the old "tar xvf +# $CWD/$PRGNAM-$VERSION.tar.*" will fail. So make sure we only pass +# *one* filename to tar: +TARBALL="$CWD/$PRGNAM-$VERSION.tar.gz" +[ -e "$TARBALL" ] || TARBALL="$( ls $TARBALL* | head -1 )" + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.* +tar xvf $TARBALL cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -90,7 +100,7 @@ CXXFLAGS="$SLKCFLAGS" \ --mandir=/usr/man \ --build=$ARCH-slackware-linux make -make install DESTDIR=$PKG +make install-strip DESTDIR=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING NEWS README $PKG/usr/doc/$PRGNAM-$VERSION |