void-packages/srcpkgs/imapfilter/template
jbu 9b451b19c6 lua*: convert for xbps-alternatives
First try to make use of the xbps-alternatives for the three versions
of lua we have now. As an example how this simplifies packages the
xmoto package patches for detecting lua52 were removed.

Also revbump or update the packages depending on lua53 to cope
for the soname change (liblua.so.5.3 to liblua5.3.so.5.3)
+ imapfilter (rev 3)
+ vim (rev 2)
+ mame (rev 2)
+ xmoto (rev 6)
+ glu (rev 6) - rebuild for musl
2015-11-10 19:26:31 +01:00

27 lines
784 B
Bash

# Template file for 'imapfilter'
pkgname=imapfilter
version=2.6.3
revision=3
build_style=gnu-makefile
hostmakedepends="lua-devel"
makedepends="pcre-devel lua-devel libressl-devel"
short_desc="Mail filtering utility"
maintainer="lemmi <lemmi@nerd2nerd.org>"
license="MIT"
homepage="https://github.com/lefcha/imapfilter"
distfiles="https://github.com/lefcha/imapfilter/archive/v${version}.tar.gz"
checksum=1174862d6d5ca498b25a78b127c25b6bfbd4c0cec30f8dfd4b6b10f8694cd244
post_configure() {
sed -i \
-e '/^MANDIR/s:/man:/share/man:' \
-e '/^PREFIX/s:PREFIX = /usr/local:PREFIX = /usr:' \
-e '/^CFLAGS/s/CFLAGS = /override CFLAGS += /' \
-e 's/$(CC)/$(CC) $(CFLAGS)/' \
src/Makefile
}
post_install() {
vsconf samples/config.lua
vsconf samples/extend.lua
vlicense LICENSE
}