[arch-commits] Commit in deepin-anything-arch/repos (2 files)

Jan Steffens heftig at archlinux.org
Sun Feb 7 23:20:40 UTC 2021


    Date: Sunday, February 7, 2021 @ 23:20:40
  Author: heftig
Revision: 848537

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
    (from rev 848533, deepin-anything-arch/trunk/PKGBUILD)

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 848533, deepin-anything-arch/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-02-07 23:20:40 UTC (rev 848537)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=deepin-anything-arch
+pkgver=5.0.7
+pkgrel=3
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything"
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("https://github.com/linuxdeepin/deepin-anything/archive/$pkgver/deepin-anything-$pkgver.tar.gz")
+sha512sums=('51e8488b4d0652d24afd1b5bd74e88140e2754354bfa85639c668479deca25e8163f3ffcf8bc1c6629d97d1cea24de89c65a76b8c9902745911fd0ed9b12b770')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  # https://github.com/linuxdeepin/deepin-anything/issues/36
+  sed -i '454s/return;/return -1;/' kernelmod/vfs_kretprobes.c
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(</usr/src/linux/version)/extramodules
+  install -Dt "$pkgdir$extradir" -m644 kernelmod/*.ko
+  find "$pkgdir" -name '*.ko' -exec strip --strip-debug {} +
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}


More information about the arch-commits mailing list