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

Filipe Laíns ffy00 at archlinux.org
Sat Mar 23 13:55:32 UTC 2019


    Date: Saturday, March 23, 2019 @ 13:55:31
  Author: ffy00
Revision: 443237

archrelease: copy trunk to community-staging-x86_64

Added:
  deepin-anything/repos/community-staging-x86_64/
  deepin-anything/repos/community-staging-x86_64/PKGBUILD
    (from rev 443236, deepin-anything/trunk/PKGBUILD)
  deepin-anything/repos/community-staging-x86_64/deepin-anything-server.sysusers
    (from rev 443236, deepin-anything/trunk/deepin-anything-server.sysusers)
  deepin-anything/repos/community-staging-x86_64/linux-4.20.patch
    (from rev 443236, deepin-anything/trunk/linux-4.20.patch)

---------------------------------+
 PKGBUILD                        |   54 ++++++++++++++++++++++++++++++++++++++
 deepin-anything-server.sysusers |    2 +
 linux-4.20.patch                |   16 +++++++++++
 3 files changed, 72 insertions(+)

Copied: deepin-anything/repos/community-staging-x86_64/PKGBUILD (from rev 443236, deepin-anything/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-03-23 13:55:31 UTC (rev 443237)
@@ -0,0 +1,54 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=deepin-anything
+pkgname=(deepin-anything deepin-anything-dkms)
+pkgver=0.0.4
+_extramodules=extramodules-ARCH
+pkgrel=1
+pkgdesc="Deepin Anything file search tool"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything"
+license=('GPL3')
+makedepends=('qt5-base')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz"
+        deepin-anything-server.sysusers
+        linux-4.20.patch
+        "linux-5.patch::$url/commit/d3c353f11989a6221f9378b4ce7bf0608c0cd8e9.patch")
+sha512sums=('fcb7683ce3bef818ac06dd62f14b5624669f9c09b53c5f08e319b724f5408bc221154428a6436d9e2a68aa6444e966c494c8a7611dfed0c93b6b9e71a3da0f55'
+            '0ff6a6de1fbfb0c33eaac511b989da321a9e43ece92708af88aee34ad1a05e55572713b1290bc2705d70b91dc7bec4fb4abd3dc664a0abe01de27d88bd9e9c85'
+            'dc3c85e9535cc589fdf56d265c4330519c92b5bcc406153e3162ba6ef5e799b702c394e1961132770f4f3ddd288dbbfe74a9d8056329e4585eb5a2094ffe0155'
+            'dc4becdd7d4db6b8ffa7f5eb1eb68ea370e25ba0713b7203e18f5611cc127b0a5f101f49f9f71960439be7af783e0fede3599273772dda8135c47fc884f8b7e9')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -p1 -i ../linux-5.patch
+  patch -p1 -i ../linux-4.20.patch
+  sed -i 's|^systemd_service.path.*|systemd_service.path = /usr/lib/systemd/system|' server/src/src.pro
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make VERSION=$pkgver
+}
+
+package_deepin-anything-dkms() {
+  depends=('dkms')
+  provides=('DEEPIN-ANYTHING-MODULE')
+  conflicts=('DEEPIN-ANYTHING-MODULE')
+
+  cd deepin-anything-$pkgver
+  install -dm 755 "$pkgdir"/usr/src
+  cp -r kernelmod "$pkgdir"/usr/src/deepin-anything-$pkgver
+  install -m644 debian/deepin-anything-dkms.dkms "$pkgdir"/usr/src/deepin-anything-$pkgver/dkms.conf
+}
+
+package_deepin-anything() {
+  depends=('DEEPIN-ANYTHING-MODULE' 'qt5-base')
+  groups=('deepin')
+
+  cd deepin-anything-$pkgver
+  make VERSION=$pkgver DESTDIR="$pkgdir" install
+  rm -r "$pkgdir"/usr/src
+
+  install -Dm644 ../deepin-anything-server.sysusers "$pkgdir/usr/lib/sysusers.d/deepin-anything-server.conf"
+}

Copied: deepin-anything/repos/community-staging-x86_64/deepin-anything-server.sysusers (from rev 443236, deepin-anything/trunk/deepin-anything-server.sysusers)
===================================================================
--- community-staging-x86_64/deepin-anything-server.sysusers	                        (rev 0)
+++ community-staging-x86_64/deepin-anything-server.sysusers	2019-03-23 13:55:31 UTC (rev 443237)
@@ -0,0 +1,2 @@
+u deepin_anything_server - "Deepin Anything Server"
+g deepin_anything_server -

Copied: deepin-anything/repos/community-staging-x86_64/linux-4.20.patch (from rev 443236, deepin-anything/trunk/linux-4.20.patch)
===================================================================
--- community-staging-x86_64/linux-4.20.patch	                        (rev 0)
+++ community-staging-x86_64/linux-4.20.patch	2019-03-23 13:55:31 UTC (rev 443237)
@@ -0,0 +1,16 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 0d6d360..d09e439 100644
+--- a/kernelmod/vfs_change.c
++++ b/kernelmod/vfs_change.c
+@@ -115,7 +115,11 @@ static ssize_t copy_vfs_changes(struct timeval *last, char* buf, size_t size)
+ 
+ 		time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
+ 		struct tm ts;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+ 		time_to_tm(shifted_secs, 0, &ts);
++#else
++		time64_to_tm(shifted_secs, 0, &ts);
++#endif
+ 		char temp[MIN_LINE_SIZE];
+ 		snprintf(temp, sizeof(temp), "%04ld-%02d-%02d %02d:%02d:%02d.%03ld %s ",
+ 			1900+ts.tm_year, 1+ts.tm_mon, ts.tm_mday, ts.tm_hour, ts.tm_min, ts.tm_sec, vc->ts.tv_usec/1000, 


More information about the arch-commits mailing list