aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kde-runtime/APKBUILD
blob: f39131d64480fde7362f0d2c5240910ee335c409 (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
46
47
48
49
50
51
52
53
54
55
56
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=kde-runtime
pkgver=4.13.3
pkgrel=1
pkgdesc="KDE base runtime"
url="http://www.kde.org/"
arch="all"
license="LGPL"
depends=
depends_dev="kactivities-dev kdepimlibs-dev libgcrypt-dev
	     samba-dev libssh-dev libcanberra-dev openslp-dev"
makedepends="$depends_dev cmake automoc4"
install=""
options="suid"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="ftp://ftp.kde.org/pub/kde/stable/${pkgver}/src/${pkgname}-${pkgver}.tar.xz"

_builddir="$srcdir"/${pkgname}-${pkgver}
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	mkdir -p "$_builddir"/build
}

build() {
	cd "$_builddir"/build
	cmake -DCMAKE_INSTALL_PREFIX=/usr \
	      -DSYSCONF_INSTALL_DIR=/etc \
	      -DCMAKE_SKIP_RPATH=ON \
	      -DCMAKE_BUILD_TYPE=Release \
	      -DSAMBA_INCLUDE_DIR=/usr/include/samba-4.0 \
	      -DWITH_NepomukCore:BOOL=OFF \
	      -DWITH_PulseAudio:BOOL=OFF \
	      -DWITH_NetworkManager:BOOL=OFF \
	      -Wno-dev \
	      "$_builddir" || return 1
	make || return 1
}

package() {
	cd "$_builddir"/build
	make DESTDIR="$pkgdir" install || return 1
	ln -sfv /usr/lib/kde4/libexec/kdesu \
		"$pkgdir"/usr/bin/kdesu || return 1
	rm "$pkgdir"/usr/share/icons/hicolor/index.theme || return 1
}

md5sums="8b7b7e217744779f33dd8aa38015efa0  kde-runtime-4.13.3.tar.xz"
sha256sums="d35dbf930d212e86154e87e3566797827af1ed666099e5d5df8df76b874318f0  kde-runtime-4.13.3.tar.xz"
sha512sums="785f6d392e7d573487e38316976eb64061bba417ec68edff6e1aad1499f5932c15db3ee21daf357fcb5be72c13fb658f7359dbc493c4214df6b2d34072dacfb5  kde-runtime-4.13.3.tar.xz"