aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kdelibs/APKBUILD
blob: 08dd75481cd0797cbfc59a5d60ce35430820058c (plain) (blame)
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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=kdelibs
pkgver=4.6.3
pkgrel=3
pkgdesc="KDE base libraries"
url="http://www.kde.org/"
arch="all"
license="GPL"
depends="shared-desktop-ontologies"
depends_dev="qt-dev phonon-dev polkit-qt-dev pcre-dev gamin-dev enchant-dev udev-dev
	     giflib-dev docbook-xml docbook-xsl acl-dev jasper-dev strigi-dev xz-dev
	     avahi-dev attica-dev aspell-dev libdbusmenu-qt-dev soprano-dev jpeg-dev
	     qca-dev"
makedepends="$depends_dev cmake automoc4"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://kde.mirrors.tds.net/pub/kde/stable/$pkgver/src/kdelibs-$pkgver.tar.bz2
	kdelibs-madvise.patch
	kdelibs-skipname.patch"

_builddir="$srcdir"/kdelibs-$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 "$_builddir" || return 1
	make || return 1
}

package() {
	cd "$_builddir"/build
	make DESTDIR="$pkgdir" install || return 1
}

dev() {
	default_dev
	mv "$subpkgdir"/usr/bin/kde4-config "$pkgdir"/usr/bin/kde4-config
}

md5sums="923a7e8f89aa504647e14472b24b8c0a  kdelibs-4.6.3.tar.bz2
90c533263848d54312ba37c6ac203818  kdelibs-madvise.patch
9ff128752c657094dff94bae96d1528f  kdelibs-skipname.patch"