wok view bogofilter/receipt @ rev 25442

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 02 16:30:36 2022 +0000 (2022-09-02)
parents 319f735969b9
children
line source
1 # SliTaz package receipt.
3 PACKAGE="bogofilter"
4 VERSION="1.2.5"
5 CATEGORY="network"
6 TAGS="mail email filter spam C"
7 SHORT_DESC="Mail filter that classifies mail as spam or ham."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2 GPL3"
10 WEB_SITE="https://www.bogofilter.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 DEPENDS="gsl sqlite"
16 BUILD_DEPENDS="sqlite-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/bogofilter/files/bogofilter-stable/ 2>/dev/null | \
22 sed '/scope="row/!d;/tar/!d;s|.*bogofilter-||;s|.tar.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 --with-database=sqlite3 \
30 --prefix=/usr \
31 --sysconfdir=/etc/bogofilter \
32 --infodir=/usr/share/info \
33 --mandir=/usr/share/man \
34 $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/etc $fs
46 chmod +x $fs/usr/bin/bf_*
47 }