summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dde856c39e2247cbf2e292a50b68bf82c38058bf (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
36
37
38
39
40
41
42
43
44
45
# $Id$
# Maintainer: Silvio Fricke <silvio.fricke@gmail.com>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Emanuele Rampichini <emanuele.rampichini@gmail.com>

pkgname=smb4k-git
pkgver=2.0.80.r28.b95a5eb
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)
makedepends=(git extra-cmake-modules kdoctools python plasma-framework)
source=('git+git://anongit.kde.org/smb4k.git')
conflicts=(smb4k)
provides=(smb4k)
sha256sums=(SKIP)

pkgver() {
	cd smb4k
	printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

prepare() {
	[ -e build ] && rm -rf build
	mkdir -p build
}

build() {
	cd build

	cmake ../smb4k \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=RELEASE \
		-DKDE_INSTALL_LIBDIR=lib \
		-DBUILD_TESTING=OFF
	make
}

package() {
	cd build

	make DESTDIR="$pkgdir" install
}