summaryrefslogtreecommitdiffstats
path: root/network/neomutt
diff options
context:
space:
mode:
Diffstat (limited to 'network/neomutt')
-rw-r--r--network/neomutt/README9
-rw-r--r--network/neomutt/neomutt.SlackBuild35
-rw-r--r--network/neomutt/neomutt.info6
3 files changed, 33 insertions, 17 deletions
diff --git a/network/neomutt/README b/network/neomutt/README
index 6da5020cbc..bb806f5098 100644
--- a/network/neomutt/README
+++ b/network/neomutt/README
@@ -6,13 +6,12 @@ for selecting groups of messages.
Optional dependencies:
-* lua53 or lua52 - Powerful, fast, light-weight, embeddable scripting language
* notmuch - fast mail indexer for maildir
-* kyotocabinet - straightforward implementation of DBM
-* libidn2 - GNU IDN Library version 2
+* lua53 - Powerful, fast, light-weight, embeddable scripting language
+ NOTE: this won't work if you have multiple versions of lua installed.
This script builds neomutt without optional support
-for notmuch, lua and kyotocabinet.
+for idn2, notmuch, lua and kyotocabinet.
You can be enabled with:
-# USENOTMUCH=yes USELUA=yes USEKYOTO=yes USEIDN2:-yes ./neomutt.SlackBuild
+# USENOTMUCH=yes USELUA=yes ./neomutt.SlackBuild
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
+
diff --git a/network/neomutt/neomutt.info b/network/neomutt/neomutt.info
index c50c5700e7..fab43ad595 100644
--- a/network/neomutt/neomutt.info
+++ b/network/neomutt/neomutt.info
@@ -1,8 +1,8 @@
PRGNAM="neomutt"
-VERSION="20200320"
+VERSION="20240329"
HOMEPAGE="https://github.com/neomutt/neomutt"
-DOWNLOAD="https://github.com/neomutt/neomutt/archive/20200320/neomutt-20200320.tar.gz"
-MD5SUM="ee975317f1dfa06cd1a7e2626911697a"
+DOWNLOAD="https://github.com/neomutt/neomutt/archive/20240329/neomutt-20240329.tar.gz"
+MD5SUM="3ea5e0b732ecff28a2105041602e6222"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""