[arch-commits] Commit in dovecot-fts-xapian/trunk (PKGBUILD)

George Rawlinson grawlinson at archlinux.org
Sat Jun 26 22:15:51 UTC 2021


    Date: Saturday, June 26, 2021 @ 22:15:51
  Author: grawlinson
Revision: 967560

upgpkg: dovecot-fts-xapian 1.4.10-1

* New upstream release
* Added fts optimise systemd units

Modified:
  dovecot-fts-xapian/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-26 19:01:06 UTC (rev 967559)
+++ PKGBUILD	2021-06-26 22:15:51 UTC (rev 967560)
@@ -9,8 +9,8 @@
 
 pkgname=dovecot-fts-xapian
 _pkgname="${pkgname#dovecot-}"
-pkgver=1.4.9b
-pkgrel=2
+pkgver=1.4.10
+pkgrel=1
 pkgdesc="Dovecot FTS plugin based on Xapian"
 arch=('x86_64')
 url="https://github.com/grosjo/fts-xapian"
@@ -18,7 +18,7 @@
 depends=("dovecot=${_dcpkgver}" 'icu' 'xapian-core')
 install="$pkgname.install"
 source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-b2sums=('1f49139d9fb3d334a1adae00b5a3fc364df9a36418c64674db00bac807b681bc3aafd3033f3e38f4696d537fe2f5f772a5e4fd1313b2a0d5c77fea9dfa78bdad')
+b2sums=('9f886bbb3a3786451e86207f0dd856c56b1facde21facdbeb6d8fbe05fe132d76a96aa4906e6d29d32dc0aa1b12b468be6449c600831f656f7ae9ed51b0cebaf')
 
 build() {
   cd "$_pkgname-$pkgver"
@@ -28,6 +28,13 @@
     --with-dovecot=/usr/lib/dovecot
 
   make
+  
+  # generate systemd unit files
+  mkdir build
+  sed "s:@@prefix@@:/usr/lib:" contrib/systemd/dovecot-fts-optimize.service.in \
+    > build/dovecot-fts-optimize.service
+  sed "s:@@index_frequency@@:daily:" contrib/systemd/dovecot-fts-optimize.timer.in \
+    > build/dovecot-fts-optimize.timer
 }
 
 package() {
@@ -37,4 +44,8 @@
 
   # documentation
   install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+
+  # systemd integration
+  install -vDm644 -t "$pkgdir/usr/lib/systemd/system" \
+    build/dovecot-fts-optimize.{service,timer}
 }




More information about the arch-commits mailing list