wok annotate mailx/receipt @ rev 25808

created recipe for xmenu
author Hans-G?nter Theisgen
date Thu Dec 19 16:09:37 2024 +0100 (9 days ago)
parents f7324cde07d7
children
rev   line source
pankso@12193 1 # SliTaz package receipt.
pankso@12193 2
pankso@12193 3 PACKAGE="mailx"
pankso@12193 4 VERSION="12.4"
pankso@12193 5 CATEGORY="network"
pankso@12193 6 SHORT_DESC="Command-line Mail User Agent derived from Berkeley Mail."
pankso@12193 7 MAINTAINER="pankso@slitaz.org"
pascal@15584 8 LICENSE="BSD"
pankso@12193 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@25469 10 WEB_SITE="https://heirloom.sourceforge.net/mailx.html"
pascal@25486 11 WGET_URL="$SF_MIRROR/project/heirloom/heirloom-mailx/$VERSION/$TARBALL"
pankso@12193 12
pankso@12193 13 DEPENDS="sendmail"
pankso@12193 14
pascal@24402 15 # What is the latest version available today?
pascal@24402 16 current_version()
pascal@24402 17 {
pascal@24402 18 wget -O - https://sourceforge.net/projects/heirloom/files/heirloom-mailx/ 2>/dev/null | \
pascal@25606 19 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
pascal@24402 20 sed '/scope="row/!d;s|.*/heirloom-mailx/||;s|/.*||;q'
pascal@24402 21 }
pascal@24402 22
pankso@12193 23 # Rules to configure and make the package.
pankso@12193 24 compile_rules()
pankso@12193 25 {
pascal@20212 26 sed -i 's|uname -m|echo i486|' Makefile
pascal@18367 27 sed -i 's|STACK|STACK_OF(X509)|' openssl.c
pankso@12193 28 make SENDMAIL=/usr/sbin/sendmail &&
pankso@12193 29 make PREFIX=/usr UCBINSTALL=/usr/bin/install \
pankso@12193 30 DESTDIR=$DESTDIR install
pankso@12193 31 }
pankso@12193 32
pankso@12193 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@12193 34 genpkg_rules()
pankso@12193 35 {
pankso@12193 36 mkdir -p $fs/usr
pankso@12193 37 cp -a $install/etc $fs
pankso@12193 38 cp -a $install/usr/bin $fs/usr
pankso@12193 39 cd $fs/usr/bin
pankso@12193 40 ln -s mailx mail && ln -s mailx nail
pankso@12193 41 }