[arch-commits] Commit in plocate/repos (3 files)

Morten Linderud foxboron at archlinux.org
Wed Oct 21 09:10:58 UTC 2020


    Date: Wednesday, October 21, 2020 @ 09:10:58
  Author: foxboron
Revision: 727791

archrelease: copy trunk to community-x86_64

Added:
  plocate/repos/community-x86_64/
  plocate/repos/community-x86_64/PKGBUILD
    (from rev 727790, plocate/trunk/PKGBUILD)
  plocate/repos/community-x86_64/plocate-build.service
    (from rev 727790, plocate/trunk/plocate-build.service)

-----------------------+
 PKGBUILD              |   38 ++++++++++++++++++++++++++++++++++++++
 plocate-build.service |   11 +++++++++++
 2 files changed, 49 insertions(+)

Copied: plocate/repos/community-x86_64/PKGBUILD (from rev 727790, plocate/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-10-21 09:10:58 UTC (rev 727791)
@@ -0,0 +1,38 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Hans-Nikolai Viessmann <hans AT viess DOT mn>
+
+pkgname=plocate
+pkgver=1.0.5
+pkgrel=1
+pkgdesc="Alternative to locate, faster and compatible with mlocate's database."
+arch=('x86_64' 'i686')
+url="https://plocate.sesse.net"
+license=('GPL2')
+depends=('zstd' 'liburing' 'mlocate')
+makedepends=('meson')
+source=("${url}/download/${pkgname}-${pkgver}.tar.gz"
+        'plocate-build.service')
+sha256sums=('afb62d4ff85bdef51f5daa143e15889718d272cef9e9e43d1149ca36584fa6cd'
+            '1aacfdfb905d78eaa207f6cf295b0993c0863d27445eb02d7236bc8075b22e7e')
+
+build() {
+    cd $pkgname-$pkgver
+
+    arch-meson \
+        -Dinstall_cron=false \
+        -Dlocategroup=locate \
+        ../build
+
+    meson compile -C ../build
+}
+
+package() {
+    cd $pkgname-$pkgver
+    DESTDIR="$pkgdir" meson install -C ../build
+
+    chgrp 21 "${pkgdir}/usr/bin/plocate"
+    chmod 2755 "${pkgdir}/usr/bin/plocate"
+
+    install -Dm644 ../plocate-build.service "${pkgdir}/usr/lib/systemd/system/plocate-build.service"
+    install ../build/update-plocate.sh "${pkgdir}/usr/bin/update-plocate.sh"
+}

Copied: plocate/repos/community-x86_64/plocate-build.service (from rev 727790, plocate/trunk/plocate-build.service)
===================================================================
--- community-x86_64/plocate-build.service	                        (rev 0)
+++ community-x86_64/plocate-build.service	2020-10-21 09:10:58 UTC (rev 727791)
@@ -0,0 +1,11 @@
+[Unit]
+Description=Update plocate database
+After=updatedb.service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/update-plocate.sh
+IOSchedulingClass=idle
+
+[Install]
+WantedBy=updatedb.service



More information about the arch-commits mailing list