[arch-commits] Commit in deepin-manual/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Apr 8 06:31:07 UTC 2018


    Date: Sunday, April 8, 2018 @ 06:31:06
  Author: felixonmars
Revision: 315037

upgpkg: deepin-manual 2.0.7.6-1

Modified:
  deepin-manual/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++++++++++--------------------
 1 file changed, 13 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-04-08 06:25:30 UTC (rev 315036)
+++ PKGBUILD	2018-04-08 06:31:06 UTC (rev 315037)
@@ -4,38 +4,31 @@
 # Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
 
 pkgname=deepin-manual
-pkgver=1.0.6
+pkgver=2.0.7.6
 pkgrel=1
 pkgdesc='Deepin User Manual'
-arch=('any')
+arch=('x86_64')
 url="https://github.com/linuxdeepin/deepin-manual"
 license=('GPL3')
-depends=('python-jieba' 'python-pyqt5' 'python-gobject' 'deepin-qml-widgets' 'python-dae')
-makedepends=('npm' 'sassc' 'git')
+depends=('deepin-qt5integration' 'qcef')
+makedepends=('cmake' 'qt5-tools')
 groups=('deepin')
-source=("git+https://github.com/linuxdeepin/deepin-manual.git#tag=$pkgver")
-sha256sums=('SKIP')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-manual/archive/$pkgver.tar.gz")
+sha256sums=('bc7fad2cc61bd6765a0795abdf5879e58dda7e1fa2da0e422e3ff6df742669f2')
 
 prepare() {
-  cd deepin-manual
-
-  sed -e 's_ln -sf /usr/bin/nodejs ./symdir/node__' \
-      -e 's/sass /sassc /' \
-      -e 's/--unix-newlines//' \
-      -i Makefile
+  mkdir -p build
 }
 
 build() {
-  cd deepin-manual
+  cd build
+
+  cmake ../$pkgname-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release
   make
 }
 
 package() {
-  cd deepin-manual
-  make DESTDIR="$pkgdir" install
-
-  cp -r manual "$pkgdir"/usr/share/dman/dman
-  rm -r "$pkgdir"/usr/share/dman/dman-daemon/
-  rm "$pkgdir"/etc/xdg/autostart/dman-daemon.desktop
-  rmdir "$pkgdir"/etc{/xdg/autostart,/xdg,}
+  make -C build DESTDIR="$pkgdir" install
 }



More information about the arch-commits mailing list