wok view mutt/receipt @ rev 24713
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 14 18:23:09 2022 +0000 (2022-03-14) |
parents | bc2b9d9bed6f |
children | 91ffa413683d |
line source
1 # SliTaz package receipt
3 PACKAGE="mutt"
4 VERSION="1.14.7"
5 CATEGORY="network"
6 SHORT_DESC="Small and powerful text-based mail client."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.mutt.org"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="ftp://ftp.mutt.org/pub/mutt/$TARBALL"
14 DEPENDS="libidn libsasl ncurses openssl zlib"
15 BUILD_DEPENDS="cyrus-sasl-dev libidn-dev libxslt ncurses-dev openssl-dev perl"
17 CONFIG_FILES="/etc/Muttrc /etc/mime.types"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://gitlab.com/muttmua/mutt/-/tags 2>/dev/null | \
23 sed '/item-title/!d;s|.*">[a-z-]*||;s|-rel<.*||;s|-|.|g;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 addgroup mail
30 sed -i 's/STACK \*/STACK_OF(X509) */' mutt_ssl.c
32 ./configure \
33 --prefix=/usr \
34 --enable-imap \
35 --with-mailpath=/var/mail \
36 --with-ssl=/usr \
37 --sysconfdir=/etc \
38 --enable-pop \
39 --enable-smtp \
40 --with-sasl \
41 $CONFIGURE_ARGS &&
42 make &&
43 make install
45 delgroup mail
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr
52 mkdir -p $fs/etc
54 cp -a $install/usr/bin $fs/usr
55 cp -a $install/etc/* $fs/etc
56 cp -a $install/usr/share $fs/usr
58 rm -r $fs/usr/share/doc
59 rm -r $fs/usr/share/man
60 }
62 post_install()
63 {
64 chroot "$1/" addgroup mail
65 }
67 post_remove()
68 {
69 chroot "$1/" delgroup mail
70 }