[arch-commits] Commit in smb4k/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Sat Mar 11 18:10:49 UTC 2017


    Date: Saturday, March 11, 2017 @ 18:10:49
  Author: arojas
Revision: 290624

Update to 2.0.0

Modified:
  smb4k/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++++++++++++++++-----------
 1 file changed, 20 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-03-11 15:27:55 UTC (rev 290623)
+++ PKGBUILD	2017-03-11 18:10:49 UTC (rev 290624)
@@ -3,28 +3,37 @@
 # Contributor: Emanuele Rampichini <emanuele.rampichini at gmail.com>
 
 pkgname=smb4k
-pkgver=1.2.2
+pkgver=2.0.0
 pkgrel=1
 pkgdesc="A KDE program that browses samba shares"
-arch=('i686' 'x86_64')
+arch=(i686 x86_64)
 url="http://smb4k.sourceforge.net/"
-license=('GPL')
-depends=('kdebase-runtime')
-makedepends=('cmake' 'automoc4')
+license=(GPL)
+depends=(kparts hicolor-icon-theme)
+makedepends=(extra-cmake-modules kdoctools python plasma-framework)
 source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.xz")
-md5sums=('daf75ffcab2af9c8035e7ab3baa932f5')
+sha256sums=('8a9f9bbfc9876816393d9f269952ddfe896c540e2de26b634b8e709a13ceca95')
 
+prepare() {
+  mkdir -p build
+
+# fix doc cmake conflicts
+  sed -e '/kdoctools_install/d' -i $pkgname-$pkgver/CMakeLists.txt
+}
+
 build() {
-  cd ${pkgname}-${pkgver}
+  cd build
 
-  cmake -DCMAKE_INSTALL_PREFIX=/usr \
+  cmake ../$pkgname-$pkgver \
+        -DCMAKE_INSTALL_PREFIX=/usr \
         -DCMAKE_BUILD_TYPE=RELEASE \
-        -DINSTALL_PLASMOID=OFF
+        -DKDE_INSTALL_LIBDIR=lib \
+        -DBUILD_TESTING=OFF
   make
 }
 
 package() {
-  cd ${pkgname}-${pkgver}
+  cd build
 
-  make DESTDIR="${pkgdir}" install
+  make DESTDIR="$pkgdir" install
 }


More information about the arch-commits mailing list