slackware-current/source/n/getmail/getmail.SlackBuild
Patrick J Volkerding aef1dd99c7 Sat Aug 15 19:54:20 UTC 2020
ap/hplip-3.20.6-x86_64-2.txz:  Rebuilt.
  Recompiled against net-snmp-5.9.
ap/pamixer-1.4-x86_64-6.txz:  Rebuilt.
  Recompiled against boost-1.74.0.
ap/sqlite-3.33.0-x86_64-1.txz:  Upgraded.
kde/calligra-2.9.11-x86_64-37.txz:  Rebuilt.
  Recompiled against boost-1.74.0.
l/akonadi-1.13.0-x86_64-16.txz:  Rebuilt.
  Recompiled against boost-1.74.0.
l/boost-1.74.0-x86_64-1.txz:  Upgraded.
  Shared library .so-version bump.
l/libcroco-0.6.13-x86_64-1.txz:  Removed.
n/getmail-6.02-x86_64-1.txz:  Upgraded.
  This is a new version that uses Python 3. The ChangeLog warns that it "loses
  some backward compatibility"... please report any bugs.
n/net-snmp-5.9-x86_64-1.txz:  Upgraded.
  Shared library .so-version bump.
n/ntp-4.2.8p15-x86_64-2.txz:  Rebuilt.
  Recompiled against net-snmp-5.9.
n/php-7.4.9-x86_64-2.txz:  Rebuilt.
  Recompiled against net-snmp-5.9.
xap/sane-1.0.30-x86_64-2.txz:  Rebuilt.
  Recompiled against net-snmp-5.9.
xap/ssr-0.4.2-x86_64-1.txz:  Added.
2020-08-16 09:00:06 +02:00

75 lines
2.4 KiB
Bash
Executable file

#!/bin/bash
# Copyright 2008, 2009, 2010, 2017, 2018, 2020 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=getmail
VERSION=${VERSION:-$(echo getmail6-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) export ARCH=i586 ;;
arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) export 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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz"
exit 0
fi
TMP=${TMP:-/tmp}
PKG=$TMP/package-getmail
rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf getmail6-$VERSION
tar xvf $CWD/getmail6-$VERSION.tar.?z || exit 1
chown -R root:root getmail6-$VERSION
cd getmail6-$VERSION || exit 1
python3 setup.py build || exit 1
python3 setup.py install --root=$PKG || exit 1
( cd $PKG/usr/share
mv man ..
mv doc ..
cd ..
rmdir share
)
gzip -9 $PKG/usr/man/man1/*
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
# Build the package:
cd $PKG
/sbin/makepkg -l y -c n $TMP/getmail-$VERSION-$ARCH-$BUILD.txz