[arch-commits] Commit in rspamd/trunk (PKGBUILD)
Maxime Gauduin
alucryd at archlinux.org
Tue Feb 11 07:55:20 UTC 2020
Date: Tuesday, February 11, 2020 @ 07:55:19
Author: alucryd
Revision: 566818
add perl to makedepends: rspamd 2.3-2
Modified:
rspamd/trunk/PKGBUILD
----------+
PKGBUILD | 29 +++++++++++------------------
1 file changed, 11 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-02-11 07:47:47 UTC (rev 566817)
+++ PKGBUILD 2020-02-11 07:55:19 UTC (rev 566818)
@@ -5,7 +5,7 @@
pkgname=rspamd
pkgver=2.3
-pkgrel=1
+pkgrel=2
epoch=
pkgdesc='Fast, free and open-source spam filtering system'
arch=(x86_64)
@@ -14,6 +14,7 @@
depends=(
file
glib2
+ glibc
hyperscan
icu
jemalloc
@@ -30,6 +31,7 @@
cmake
git
ninja
+ perl
ragel
)
optdepends=('redis: Redis cache and data storage')
@@ -135,11 +137,6 @@
}
prepare() {
- if [[ -d build ]]; then
- rm -rf build
- fi
- mkdir build
-
cd rspamd
sed 's/_rspamd/rspamd/g' -i rspamd.service
@@ -146,9 +143,7 @@
}
build() {
- cd build
-
- cmake ../rspamd \
+ cmake -S rspamd -B build \
-G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCONFDIR=/etc/rspamd \
@@ -161,18 +156,16 @@
-DENABLE_HYPERSCAN=ON \
-DENABLE_JEMALLOC=ON \
-DENABLE_OPTIMIZATION=ON
- 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:
More information about the arch-commits
mailing list