wok annotate rspamd/receipt @ rev 25660
ntfsprogs: fix build
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 17 11:09:57 2024 +0000 (9 months ago) |
parents | 5ea0ce1cecc0 |
children |
rev | line source |
---|---|
pascal@18372 | 1 # SliTaz package receipt. |
pascal@18372 | 2 |
pascal@18372 | 3 PACKAGE="rspamd" |
Hans-G?nter@21850 | 4 VERSION="1.9.4" |
pascal@18372 | 5 CATEGORY="network" |
Hans-G?nter@21562 | 6 TAGS="spam" |
pascal@18372 | 7 SHORT_DESC="Fast, free and open-source spam filtering system." |
pascal@18372 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18372 | 9 LICENSE="BSD" |
pascal@18372 | 10 WEB_SITE="https://rspamd.com/" |
pascal@18372 | 11 |
Hans-G?nter@21562 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21562 | 13 WGET_URL="https://github.com/vstakhov/$PACKAGE/archive/$VERSION.tar.gz" |
Hans-G?nter@21562 | 14 |
Hans-G?nter@21562 | 15 BUILD_DEPENDS="cmake glib-dev gmime-dev hiredis-dev icu-dev libevent-dev \ |
Hans-G?nter@21562 | 16 libmagic-dev lua-dev luajit-dev openssl-dev perl pkg-config \ |
Hans-G?nter@21562 | 17 ragel sqlite-dev" |
pascal@18372 | 18 |
pascal@25601 | 19 # What is the latest version available today? |
pascal@24055 | 20 current_version() |
pascal@24055 | 21 { |
pascal@24055 | 22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25601 | 23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 24 } |
pascal@24055 | 25 |
pascal@18372 | 26 # Rules to configure and make the package. |
pascal@18372 | 27 compile_rules() |
pascal@18372 | 28 { |
Hans-G?nter@21850 | 29 mkdir build |
Hans-G?nter@21850 | 30 cd build |
Hans-G?nter@21562 | 31 cmake .. \ |
Hans-G?nter@21562 | 32 -DCMAKE_INSTALL_PREFIX=/usr \ |
Hans-G?nter@21562 | 33 -DCONFDIR=/etc/rspamd && |
pascal@18372 | 34 make && |
pascal@18372 | 35 make DESTDIR=$DESTDIR install |
pascal@18372 | 36 } |
pascal@18372 | 37 |
pascal@18372 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18372 | 39 genpkg_rules() |
pascal@18372 | 40 { |
pascal@18372 | 41 cp -a $install/* $fs/ |
pascal@18372 | 42 } |