summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2edcb2794596262c0d6ab7714686646766f096fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Panda <panda at rebornos dot org>

_pkgname=deepin-log-viewer
pkgname=deepin-log-viewer-git
pkgver=5.9.13.g270b40c
pkgrel=1
pkgdesc="A tool to optimize and tweak your Deepin system"
arch=('x86_64')
url="https://github.com/linuxdeepin/deepin-log-viewer"
license=('LGPL3')
provides=('deepin-log-viewer' 'dtkwidget')
depends=('dtkdeclarative' 'polkit-qt5')
makedepends=('dtkgui' 'dtkcore' 'qt5-quickcontrols2' 
             'qt5-declarative' 'qt5-base' 'cmake' 
             'rapidjson' 'xerces-c' 'gtest' 'boost'
             'qt5-svg' 'systemd-libs' 'icu' 'qt5-tools')
source=(git+https://github.com/linuxdeepin/deepin-log-viewer)
sha256sums=('SKIP')

pkgver() {
  cd $srcdir/$_pkgname
  echo $(git describe --tags | sed 's/-[0-9]*-g/-g/' | sed 's/-/./g')
}

build() {
  cd $srcdir/$_pkgname
  mkdir build || true
  cd build
  cmake .. 
  make
}

package() {
  cd $srcdir/$_pkgname/build
  make DESTDIR=$pkgdir install
  mkdir $pkgdir/usr/share/polkit-1/actions/ -p || true
  cp $srcdir/$_pkgname/application/assets/com.deepin.pkexec.logViewerAuth.policy $pkgdir/usr/share/polkit-1/actions/
}