From 734366040648c6bf72891b04967f9ff647fb126d Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Tue, 11 Feb 2020 13:42:35 +0000 Subject: [PATCH] community/rspamd to 2.3-2 --- community/rspamd/PKGBUILD | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/community/rspamd/PKGBUILD b/community/rspamd/PKGBUILD index d594be1be..8f2fa8598 100644 --- a/community/rspamd/PKGBUILD +++ b/community/rspamd/PKGBUILD @@ -10,7 +10,7 @@ pkgname=rspamd pkgver=2.3 -pkgrel=1 +pkgrel=2 epoch= pkgdesc='Fast, free and open-source spam filtering system' arch=(x86_64) @@ -19,6 +19,7 @@ license=(BSD) depends=( file glib2 + glibc icu jemalloc libevent @@ -34,6 +35,7 @@ makedepends=( cmake git ninja + perl ragel ) optdepends=('redis: Redis cache and data storage') @@ -141,11 +143,6 @@ pkgver() { } prepare() { - if [[ -d build ]]; then - rm -rf build - fi - mkdir build - cd rspamd sed 's/_rspamd/rspamd/g' -i rspamd.service @@ -153,9 +150,7 @@ prepare() { } build() { - cd build - - cmake ../rspamd \ + cmake -S rspamd -B build \ -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCONFDIR=/etc/rspamd \ @@ -168,18 +163,16 @@ build() { -DENABLE_HYPERSCAN=OFF \ -DENABLE_JEMALLOC=ON \ -DENABLE_OPTIMIZATION=OFF - cmake --build . + cmake --build build } package() { - cd build + DESTDIR="${pkgdir}" cmake --build build --target install - DESTDIR="${pkgdir}" cmake --build . --target install - - install -Dm 644 ../rspamd/LICENSE.md -t "${pkgdir}"/usr/share/licenses/rspamd - install -Dm 644 ../rspamd.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/rspamd.conf - install -Dm 644 ../rspamd.sysusers "${pkgdir}"/usr/lib/sysusers.d/rspamd.conf - install -Dm 644 ../rspamd.logrotate "${pkgdir}"/etc/logrotate.d/rspamd + install -Dm 644 rspamd/LICENSE.md -t "${pkgdir}"/usr/share/licenses/rspamd + install -Dm 644 rspamd.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/rspamd.conf + install -Dm 644 rspamd.sysusers "${pkgdir}"/usr/lib/sysusers.d/rspamd.conf + install -Dm 644 rspamd.logrotate "${pkgdir}"/etc/logrotate.d/rspamd } -# vim: set ts=2 sw=2 et: +# vim: ts=2 sw=2 et: