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