32 lines
892 B
Bash
32 lines
892 B
Bash
# Template file for 'imapfilter'
|
|
pkgname=imapfilter
|
|
version=2.8.1
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_build_args="LIBLUA=-llua5.3"
|
|
hostmakedepends="lua53-devel"
|
|
makedepends="pcre2-devel lua53-devel openssl-devel"
|
|
short_desc="Mail filtering utility"
|
|
maintainer="lemmi <lemmi@nerd2nerd.org>"
|
|
license="MIT"
|
|
homepage="https://github.com/lefcha/imapfilter"
|
|
changelog="https://raw.githubusercontent.com/lefcha/imapfilter/master/NEWS"
|
|
distfiles="https://github.com/lefcha/imapfilter/archive/v${version}.tar.gz"
|
|
checksum=758a0f78aff30935916426c878d2cc803bdcd31c74982fbfcd2372e6744262cc
|
|
|
|
CFLAGS="-I$XBPS_CROSS_BASE/usr/include/lua5.3"
|
|
|
|
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
|
|
}
|