summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroaken-source <oaken-source@parabola.nu>2020-01-31 13:41:19 +0100
committeroaken-source <oaken-source@parabola.nu>2020-01-31 14:44:45 +0100
commit2da152e7366916c5f6acc61e042e0d07b3854ab2 (patch)
treec031711d73fb82c457c9faf8e76f533626a430b1
parent422f55ecb4204534b8bb990a3d41684de29e5be7 (diff)
downloadabslibre-2da152e7366916c5f6acc61e042e0d07b3854ab2.tar.gz
abslibre-2da152e7366916c5f6acc61e042e0d07b3854ab2.tar.bz2
abslibre-2da152e7366916c5f6acc61e042e0d07b3854ab2.zip
libre/deepin-anything: added
-rw-r--r--libre/deepin-anything/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/libre/deepin-anything/PKGBUILD b/libre/deepin-anything/PKGBUILD
new file mode 100644
index 000000000..4b6b517b9
--- /dev/null
+++ b/libre/deepin-anything/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer (Arch): Felix Yan <felixonmars@archlinux.org>
+# Contributor: Andreas Grapentin <andreas@grapentin.org>
+
+_basekernel=5.4.12-1
+
+pkgname=deepin-anything
+pkgver=5.0.1
+pkgrel=45
+pkgrel+=.parabola1.basekernel${_basekernel%-*}
+pkgdesc="Deepin Anything file search tool, kernel module for Linux kernel"
+pkgdesc+=' (built for the linux-libre kernel package)'
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything"
+license=('GPL3')
+makedepends=(linux-libre-headers=${_basekernel%-*} libelf)
+conflicts=('deepin-anything-arch')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+replaces+=('deepin-anything-arch')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz")
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14')
+
+build() {
+ cd deepin-anything-$pkgver
+ make -C kernelmod kdir=/usr/src/linux-libre
+}
+
+package() {
+ depends=(linux-libre=${_basekernel%-*})
+
+ cd deepin-anything-$pkgver
+ local extradir=/usr/lib/modules/$(</usr/src/linux-libre/version)/extramodules
+ install -Dt "$pkgdir$extradir" -m644 kernelmod/*.ko
+ find "$pkgdir" -name '*.ko' -exec xz {} +
+}