summaryrefslogtreecommitdiffstats
path: root/network/neomutt/neomutt.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/neomutt/neomutt.SlackBuild')
-rw-r--r--network/neomutt/neomutt.SlackBuild35
1 files changed, 26 insertions, 9 deletions
diff --git a/network/neomutt/neomutt.SlackBuild b/network/neomutt/neomutt.SlackBuild
index cf4400db76..51d1f52858 100644
--- a/network/neomutt/neomutt.SlackBuild
+++ b/network/neomutt/neomutt.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
#
# Slackware build script for neomutt
#
-# Copyright 2016-2020 Corrado Franco (https://corradofranco.it)
+# Copyright 2016-2022 Corrado Franco (https://corradofranco.it)
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
@@ -25,10 +25,13 @@
#
# Latest version of this SlackBuild at https://github.com/conraid/SlackBuilds
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=neomutt
-VERSION=${VERSION:-20200320}
+VERSION=${VERSION:-20240329}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z ${ARCH:=""} ]; then
case "$( uname -m )" in
@@ -38,7 +41,14 @@ if [ -z ${ARCH:=""} ]; then
esac
fi
-cd $(dirname $0) ; CWD=$(pwd)
+# 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
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -58,9 +68,7 @@ else
fi
[ ${USELUA:-no} == 'yes' ] && LUA="--lua" || LUA=""
-[ ${USEKYOTO:-no} == 'yes' ] && KYOTO="--kyotocabinet" || KYOTO=""
[ ${USENOTMUCH:-no} == 'yes' ] && NOTMUCH="--notmuch" || NOTMUCH=""
-[ ${USEIDN2:-no} == 'yes' ] && IDN2="--idn2 --disable-idn" || IDN2=""
set -eu
@@ -94,22 +102,30 @@ CXXFLAGS="$SLKCFLAGS" \
--gpgme \
--locales-fix \
--sqlite \
+ --full-doc \
+ --idn2 \
+ --autocrypt \
+ --lmdb \
--host=$ARCH-slackware-linux \
--build=$ARCH-slackware-linux \
- $LUA $NOTMUCH $KYOTO $IDN2
+ $NOTMUCH $LUA
make
make DESTDIR=$PKG install
+# Don't ship .la files:
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+# install desktop file and icons
install -Dm644 $CWD/files/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
for i in 32 64 128 256; do
- install -Dm644 contrib/logo/$PRGNAM-$i.png $PKG/usr/share/icons/hicolor/${i}x${i}/apps/$PRGNAM.png
+ install -Dm644 data/logo/$PRGNAM-$i.png $PKG/usr/share/icons/hicolor/${i}x${i}/apps/$PRGNAM.png
done
# Rename conf files
@@ -123,4 +139,5 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
+