# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Emanuele Rampichini <emanuele.rampichini@gmail.com>

pkgname=smb4k
pkgver=3.0.2
pkgrel=1
pkgdesc="A KDE program that browses samba shares"
arch=(x86_64)
url="https://smb4k.sourceforge.net/"
license=(GPL)
depends=(kparts hicolor-icon-theme smbclient)
makedepends=(extra-cmake-modules kdoctools plasma-framework)
source=("https://downloads.sourceforge.net/project/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz")
sha256sums=('39028049a12247012db6d84063c82991fc4422672a2bddd0ffb3438ca4924ab5')

prepare() {
  mkdir -p build
}

build() {
  cd build

  cmake ../$pkgname-$pkgver \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DBUILD_TESTING=OFF
  make
}

package() {
  cd build

  make DESTDIR="$pkgdir" install
}
