# Maintainer: Sam L. Yes pkgname=deepin-devicemanager pkgver=5.6.32 pkgrel=1 pkgdesc='A handy tool for viewing hardware information and managing the devices' arch=('x86_64') url="https://github.com/linuxdeepin/${pkgname}" license=('GPL3') depends=( 'deepin-shortcut-viewer' 'smartmontools' 'xorg-xrandr' 'upower' 'pciutils' 'lsb-release' 'dmidecode' 'bluez-utils' 'hwinfo' 'usbutils' 'polkit' 'zeromq' 'hicolor-icon-theme' ) makedepends=('qt5-tools' 'cmake' 'pkgconf' 'gtest') groups=('deepin') source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") sha512sums=('c6e529ef42c0ca9a6f520cef2d1bbbda29c625d7f834556f1f15100111a3d7ca63daf88143bb88bc195eb76e232f0c884ff44379d2a3ce5217c5ed13ceb2ec82') build() { cmake -B build -S "${pkgname}-${pkgver}" \ -DCMAKE_BUILD_TYPE='None' \ -DCMAKE_INSTALL_PREFIX='/usr' \ -Wno-dev cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build cd $pkgdir mv lib/ usr/ }