void-packages/srcpkgs/imapfilter/template
2016-06-11 01:50:46 +02:00

27 lines
779 B
Bash

# Template file for 'imapfilter'
pkgname=imapfilter
version=2.6.7
revision=1
build_style=gnu-makefile
make_build_args="DESTIDIR=${DESTDIR} PREFIX=/usr"
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=183efd43c805abaf3f60a1bca788d42da7f05c52fc952efd4555fa40233b4868
post_configure() {
sed -i \
-e '/^MANDIR/s:/man:/share/man:' \
-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
}