[arch-commits] Commit in dovecot-fts-xapian/repos (3 files)

Felix Yan felixonmars at gemini.archlinux.org
Mon Nov 22 00:15:53 UTC 2021


    Date: Monday, November 22, 2021 @ 00:15:53
  Author: felixonmars
Revision: 1054120

archrelease: copy trunk to community-staging-x86_64

Added:
  dovecot-fts-xapian/repos/community-staging-x86_64/
  dovecot-fts-xapian/repos/community-staging-x86_64/PKGBUILD
    (from rev 1054119, dovecot-fts-xapian/trunk/PKGBUILD)
  dovecot-fts-xapian/repos/community-staging-x86_64/dovecot-fts-xapian.install
    (from rev 1054119, dovecot-fts-xapian/trunk/dovecot-fts-xapian.install)

----------------------------+
 PKGBUILD                   |   52 +++++++++++++++++++++++++++++++++++++++++++
 dovecot-fts-xapian.install |   12 +++++++++
 2 files changed, 64 insertions(+)

Copied: dovecot-fts-xapian/repos/community-staging-x86_64/PKGBUILD (from rev 1054119, dovecot-fts-xapian/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-22 00:15:53 UTC (rev 1054120)
@@ -0,0 +1,52 @@
+# Maintainer: George Rawlinson <george at rawlinson.net.nz>
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+
+# This must be built against the version of dovecot being used,
+# otherwise it will fail to load and thus work.
+# Specify the version of dovecot to be used here:
+_dcpkgver=2.3.16
+# Make sure to bump pkgrel if changing this.
+
+pkgname=dovecot-fts-xapian
+_pkgname="${pkgname#dovecot-}"
+pkgver=1.5.1
+pkgrel=2
+pkgdesc="Dovecot FTS plugin based on Xapian"
+arch=('x86_64')
+url="https://github.com/grosjo/fts-xapian"
+license=('LGPL2.1')
+depends=("dovecot=${_dcpkgver}" 'icu' 'xapian-core')
+install="$pkgname.install"
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('ad5512ea703a49d0dffe3a18ff890570650019831c9742a3db2d5c58bb9d4254e0709e7abe5cd9d80c991a3ce621eb9e8fcc89a27b4af7f569238821a684d7cd')
+b2sums=('e1121e2842ec486f0161206e1928098cc4d402704e72dbe1740210bd49e4bf4c1e9b0b4f60156a5c2afb6fe624deb8e0fc1e9e2263281a2c713a71492d889df6')
+
+build() {
+  cd "$_pkgname-$pkgver"
+  autoreconf -vi
+  ./configure \
+    --prefix=/usr \
+    --with-dovecot=/usr/lib/dovecot
+
+  make
+
+  # generate systemd unit files
+  mkdir build
+  sed "s:@@prefix@@:/usr/bin:" 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() {
+  cd "$_pkgname-$pkgver"
+
+  make DESTDIR="$pkgdir" install
+
+  # 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}
+}

Copied: dovecot-fts-xapian/repos/community-staging-x86_64/dovecot-fts-xapian.install (from rev 1054119, dovecot-fts-xapian/trunk/dovecot-fts-xapian.install)
===================================================================
--- community-staging-x86_64/dovecot-fts-xapian.install	                        (rev 0)
+++ community-staging-x86_64/dovecot-fts-xapian.install	2021-11-22 00:15:53 UTC (rev 1054120)
@@ -0,0 +1,12 @@
+post_install() {
+	cat <<-EOF
+
+	Documentation is included in /usr/share/doc/dovecot-fts-xapian
+
+	For more documentation, see:
+	  * https://github.com/grosjo/fts-xapian
+	  * https://doc.dovecot.org/configuration_manual/fts
+	  * https://doc.dovecot.org/settings/plugin/fts-plugin
+
+	EOF
+}



More information about the arch-commits mailing list