# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Alexander F Rødseth <xyproto@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Antonio Rojas <arojas@archlinux.org>

pkgname=kshutdown
pkgver=5.0
pkgrel=1
pkgdesc='Shutdown Utility'
arch=(x86_64)
url='https://kshutdown.sourceforge.net/'
license=(GPL)
depends=(knotifyconfig kidletime hicolor-icon-theme)
makedepends=(extra-cmake-modules)
source=("https://downloads.sourceforge.net/$pkgname/KShutdown/$pkgver/$pkgname-source-$pkgver.zip")
sha256sums=('5f66537c4c20433cf44741268f7ac5e7f42bbb3e4151f7f67984a42a9d8429df')

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../$pkgname-$pkgver \
    -DCMAKE_INSTALL_PREFIX=/usr
  make
}

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