pkgname=krusader pkgver=2.6.0 pkgrel=1 epoch=1 pkgdesc="An alternative file manager for KDE resembling Midnight Commander" url="http://krusader.sourceforge.net/" arch=('x86_64') license=('GPL') depends=('karchive' 'kbookmarks' 'kcodecs' 'kcompletion' 'kcoreaddons' 'kconfig' 'kdoctools' 'ki18n' 'kiconthemes' 'kitemviews' 'kio' 'knotifications' 'kparts' 'solid' 'ktextwidgets' 'kwallet' 'kwidgetsaddons' 'kwindowsystem' 'kxmlgui' 'kguiaddons' 'hicolor-icon-theme') makedepends=('extra-cmake-modules' 'python3' 'acl') optdepends=('acl: Access control list utilities') categories=('system') screenshot=('http://www.krusader.org/static/img/slideshow/krusader-twinpanel-thumb.png') install=${pkgname}.install source=(http://download.kde.org/stable/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.xz) sha256sums=('7061a43cada6bd7df991ed2e3e5193b1d99144fa426c8331a2b54170b79b3a39') prepare() { mkdir -p build sed -i s!"Categories=FileManager;Utility;Qt;KDE;"!"Categories=FileManager;System;Qt;KDE;"! \ $srcdir/${pkgname}-${pkgver}/${pkgname}/org.kde.krusader.desktop } build() { cd build cmake ../${pkgname}-${pkgver} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DKDE_INSTALL_LIBDIR=lib \ -DBUILD_TESTING=OFF make } package() { make -C build DESTDIR="${pkgdir}" install }