wok annotate rspamd/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 67a84b3df573 |
children | 0262035dc1e7 |
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@24055 | 19 current_version() |
pascal@24055 | 20 { |
pascal@24055 | 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 22 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 23 } |
pascal@24055 | 24 |
pascal@18372 | 25 # Rules to configure and make the package. |
pascal@18372 | 26 compile_rules() |
pascal@18372 | 27 { |
Hans-G?nter@21850 | 28 mkdir build |
Hans-G?nter@21850 | 29 cd build |
Hans-G?nter@21562 | 30 cmake .. \ |
Hans-G?nter@21562 | 31 -DCMAKE_INSTALL_PREFIX=/usr \ |
Hans-G?nter@21562 | 32 -DCONFDIR=/etc/rspamd && |
pascal@18372 | 33 make && |
pascal@18372 | 34 make DESTDIR=$DESTDIR install |
pascal@18372 | 35 } |
pascal@18372 | 36 |
pascal@18372 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18372 | 38 genpkg_rules() |
pascal@18372 | 39 { |
pascal@18372 | 40 cp -a $install/* $fs/ |
pascal@18372 | 41 } |