upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / dtkwidget / trunk / PKGBUILD
blob042b17ef454c2346f0a76b52ebcb978b6a5ae450
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
3 # Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
5 pkgname=dtkwidget
6 pkgver=5.6.7
7 _commit=cf1eceb9d93a09fa7615557d2952eb26466f135e
8 pkgrel=1
9 pkgdesc='Deepin graphical user interface library'
10 arch=('x86_64')
11 url="https://github.com/linuxdeepin/dtkwidget"
12 license=('LGPL3')
13 # qt5-imageformats is needed for webp (dci) icons
14 depends=('dtkcore' 'dtkgui' 'gcc-libs' 'glibc' 'gsettings-qt' 'libx11' 'libxcb' 'libxext' 'libxi'
15          'qt5-base' 'qt5-imageformats' 'qt5-svg' 'qt5-x11extras' 'startup-notification' 'xcb-util')
16 makedepends=('git' 'cmake' 'ninja' 'qt5-tools' 'gtest' 'doxygen')
17 replaces=('deepin-tool-kit')
18 source=("git+https://github.com/linuxdeepin/dtkwidget.git#commit=$_commit")
19 sha512sums=('SKIP')
21 build() {
22   cd dtkwidget
23   cmake . -GNinja \
24       -DMKSPECS_INSTALL_DIR=lib/qt/mkspecs/modules/ \
25       -DBUILD_DOCS=ON \
26       -DBUILD_PLUGINS=OFF \
27       -DQCH_INSTALL_DESTINATION=share/doc/qt \
28       -DCMAKE_INSTALL_LIBDIR=lib \
29       -DCMAKE_INSTALL_PREFIX=/usr \
30       -DVERSION=$pkgver \
31       -DCMAKE_BUILD_TYPE=None
32   ninja
35 package() {
36   cd dtkwidget
37   DESTDIR="$pkgdir" ninja install