slackware-current/source/n/getmail/getmail.SlackBuild
Patrick J Volkerding aa7512c31f Tue Oct 27 18:30:38 UTC 2020
a/glibc-zoneinfo-2020d-noarch-1.txz:  Upgraded.
  This package provides the latest timezone updates.
l/gst-plugins-base-1.18.1-x86_64-1.txz:  Upgraded.
l/gst-plugins-good-1.18.1-x86_64-1.txz:  Upgraded.
l/gst-plugins-libav-1.18.1-x86_64-1.txz:  Upgraded.
l/gstreamer-1.18.1-x86_64-1.txz:  Upgraded.
l/lmdb-0.9.27-x86_64-1.txz:  Upgraded.
n/getmail-6.8-x86_64-1.txz:  Upgraded.
n/libnftnl-1.1.8-x86_64-1.txz:  Upgraded.
n/nftables-0.9.7-x86_64-1.txz:  Upgraded.
n/openldap-2.4.55-x86_64-1.txz:  Upgraded.
xap/blueman-2.1.4-x86_64-1.txz:  Upgraded.
extra/pure-alsa-system/gst-plugins-good-1.18.1-x86_64-1_alsa.txz:  Upgraded.
2020-10-28 08:59:49 +01: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