1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=deepin-anything-arch
6 pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
8 url="https://github.com/linuxdeepin/deepin-anything"
10 makedepends=('linux-headers')
11 provides=('DEEPIN-ANYTHING-MODULE')
12 replaces=('deepin-anything-module')
13 source=("https://github.com/linuxdeepin/deepin-anything/archive/$pkgver/deepin-anything-$pkgver.tar.gz")
14 sha512sums=('73cc90f394b53a8d8edc17b258b63789cddd3094008de8403b24cdb0ed94e677cb9eedac297b73e8142204612a4ae5119450ebb08be4ea1c94abf0d375f8b51d')
17 cd deepin-anything-$pkgver
18 make -C kernelmod kdir=/usr/src/linux
24 cd deepin-anything-$pkgver
25 local extradir=/usr/lib/modules/$(</usr/src/linux/version)/extramodules
26 install -Dt "$pkgdir$extradir" -m644 kernelmod/*.ko
27 find "$pkgdir" -name '*.ko' -exec strip --strip-debug {} +
28 find "$pkgdir" -name '*.ko' -exec xz {} +