1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgbase=deepin-anything
4 pkgname=(deepin-anything deepin-anything-dkms)
6 _extramodules=extramodules-ARCH
8 pkgdesc="Deepin Anything file search tool"
10 url="https://github.com/linuxdeepin/deepin-anything"
12 makedepends=('dtkcore' 'udisks2-qt5')
13 source=("https://github.com/linuxdeepin/deepin-anything/archive/$pkgver/$pkgname-$pkgver.tar.gz"
14 deepin-anything-server.sysusers)
15 sha512sums=('73cc90f394b53a8d8edc17b258b63789cddd3094008de8403b24cdb0ed94e677cb9eedac297b73e8142204612a4ae5119450ebb08be4ea1c94abf0d375f8b51d'
16 '0ff6a6de1fbfb0c33eaac511b989da321a9e43ece92708af88aee34ad1a05e55572713b1290bc2705d70b91dc7bec4fb4abd3dc664a0abe01de27d88bd9e9c85')
19 cd deepin-anything-$pkgver
20 sed -i 's|^systemd_service.path.*|systemd_service.path = /usr/lib/systemd/system|' server/monitor/src/src.pro server/tool/tool.pro
24 cd deepin-anything-$pkgver
28 package_deepin-anything-dkms() {
30 provides=('DEEPIN-ANYTHING-MODULE')
31 conflicts=('DEEPIN-ANYTHING-MODULE')
33 cd deepin-anything-$pkgver
34 install -dm 755 "$pkgdir"/usr/src
35 cp -r kernelmod "$pkgdir"/usr/src/deepin-anything-$pkgver
36 install -m644 debian/deepin-anything-dkms.dkms "$pkgdir"/usr/src/deepin-anything-$pkgver/dkms.conf
39 package_deepin-anything() {
40 depends=('DEEPIN-ANYTHING-MODULE' 'dtkcore' 'udisks2-qt5')
43 cd deepin-anything-$pkgver
44 make VERSION=$pkgver DESTDIR="$pkgdir" install
45 rm -r "$pkgdir"/usr/src
47 mv "$pkgdir"/etc/dbus-1/system.d "$pkgdir"/usr/share/dbus-1/system.d
49 install -Dm644 ../deepin-anything-server.sysusers "$pkgdir/usr/lib/sysusers.d/deepin-anything-server.conf"