[arch-commits] Commit in plocate/trunk (PKGBUILD plocate-build.service)
Morten Linderud
foxboron at archlinux.org
Wed Oct 21 09:10:50 UTC 2020
Date: Wednesday, October 21, 2020 @ 09:10:50
Author: foxboron
Revision: 727790
upgpkg: plocate 1.0.5-1
Added:
plocate/trunk/PKGBUILD
plocate/trunk/plocate-build.service
-----------------------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
plocate-build.service | 11 +++++++++++
2 files changed, 49 insertions(+)
Added: PKGBUILD
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-10-21 09:10:50 UTC (rev 727790)
@@ -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"
+}
Added: plocate-build.service
===================================================================
--- plocate-build.service (rev 0)
+++ plocate-build.service 2020-10-21 09:10:50 UTC (rev 727790)
@@ -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