summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a5b0953659c97bf4a722cfb1114298a7351fec20 (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
# Maintainer: Michaƫl Lhomme <papylhomme at gmail dot com>

pkgname=diskmonitor
pkgver=0.3.4
pkgrel=1
pkgdesc="KDE tools to monitor SMART devices and MDRaid health status"
arch=('i686' 'x86_64')
url="https://github.com/papylhomme/diskmonitor"
license=('GPL2')
provides=('diskmonitor')
conflicts=('diskmonitor')
depends=('udisks2' 'qt5-base' 'ki18n' 'kiconthemes' 'knotifications' 'kxmlgui' 'plasma-framework' )
makedepends=('cmake' 'extra-cmake-modules' 'git')
options=()
source=( "$pkgname::git+https://github.com/papylhomme/diskmonitor.git#tag=${pkgver}" )
md5sums=( 'SKIP')


build () {
    cd "${srcdir}/${pkgname}"
    [ -e build ] || mkdir build
    cd build
    cmake .. \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    -DLIB_INSTALL_DIR=lib \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON

    make
}

package() {
    cd "${srcdir}/${pkgname}/build"
    make DESTDIR="${pkgdir}" install
}