wok view mailx/receipt @ rev 25097
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 18 20:27:19 2022 +0000 (2022-06-18) |
parents | 3705d68ed8f3 |
children | b0069c845544 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mailx"
4 VERSION="12.4"
5 CATEGORY="network"
6 SHORT_DESC="Command-line Mail User Agent derived from Berkeley Mail."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://heirloom.sourceforge.net/mailx.html"
11 WGET_URL="$SF_MIRROR/heirloom/$TARBALL"
13 DEPENDS="sendmail"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://sourceforge.net/projects/heirloom/files/heirloom-mailx/ 2>/dev/null | \
19 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
20 sed '/scope="row/!d;s|.*/heirloom-mailx/||;s|/.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's|uname -m|echo i486|' Makefile
27 sed -i 's|STACK|STACK_OF(X509)|' openssl.c
28 make SENDMAIL=/usr/sbin/sendmail &&
29 make PREFIX=/usr UCBINSTALL=/usr/bin/install \
30 DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $install/etc $fs
38 cp -a $install/usr/bin $fs/usr
39 cd $fs/usr/bin
40 ln -s mailx mail && ln -s mailx nail
41 }