[arch-commits] Commit in deepin-anything-arch/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Fri Oct 11 19:19:48 UTC 2019
Date: Friday, October 11, 2019 @ 19:19:47
Author: heftig
Revision: 515107
5.0.1-19: kernel 5.3.6.arch1-1; removal of extramodules-ARCH
Modified:
deepin-anything-arch/trunk/PKGBUILD
----------+
PKGBUILD | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-11 19:19:46 UTC (rev 515106)
+++ PKGBUILD 2019-10-11 19:19:47 UTC (rev 515107)
@@ -2,8 +2,7 @@
pkgname=deepin-anything-arch
pkgver=5.0.1
-_extramodules=extramodules-ARCH
-pkgrel=18
+pkgrel=19
pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
arch=('x86_64')
url="https://github.com/linuxdeepin/deepin-anything"
@@ -17,12 +16,12 @@
build() {
cd deepin-anything-$pkgver
- _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
- make -C kernelmod kdir=/usr/lib/modules/$_kernver/build
+ make -C kernelmod kdir=/usr/src/linux
}
package() {
cd deepin-anything-$pkgver
- install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 kernelmod/*.ko
+ local extradir=/usr/lib/modules/$(</usr/src/linux/version)/extramodules
+ install -Dt "$pkgdir$extradir" -m644 kernelmod/*.ko
find "$pkgdir" -name '*.ko' -exec xz {} +
}
More information about the arch-commits
mailing list