PKGBUILD 1.23 KB
Newer Older
Phil Miller's avatar
Phil Miller committed
1 2 3 4 5 6 7 8 9 10 11 12
#
# KDE SC Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>

# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf

#
# package info
#
philm's avatar
philm committed
13 14
pkgbase=kdepim-runtime
pkgname=${pkgbase}
Phil Miller's avatar
Phil Miller committed
15
arch=('i686' 'x86_64')
philm's avatar
philm committed
16

17
#pkgver=${_kdever}
Manuel's avatar
Manuel committed
18
pkgver=4.6.1
philm's avatar
philm committed
19
pkgrel=1
Phil Miller's avatar
Phil Miller committed
20 21 22 23

pkgdesc="KDE Pim Runtime"
url="http://www.kde.org"
license=('GPL' 'LGPL' 'FDL')
philm's avatar
philm committed
24
install=${pkgbase}.install
25
options=('docs' '!splithdr' 'splitdbg' 'log')
Manuel's avatar
Manuel committed
26
depends=("kdepimlibs>=${_kdever}" "kdebase-runtime" "kdelibs>=${_kdever}")
Phil Miller's avatar
Phil Miller committed
27
makedepends=('pkgconfig' 'cmake' 'automoc4')
philm's avatar
philm committed
28
groups=("kde" "kdepim" "kde-uninstall" "kde-minimal")
Phil Miller's avatar
Phil Miller committed
29

philm's avatar
philm committed
30
source=($_mirror/${pkgbase}-$pkgver.tar.bz2)
Manuel's avatar
Manuel committed
31
md5sums=('90a184721c6f95e7196988fd778026e8')
Phil Miller's avatar
Phil Miller committed
32 33 34 35 36 37 38 39

#
# build and install
#
build()
{
	msg "starting build ..."
	cd ${srcdir}
Phil Miller's avatar
Phil Miller committed
40
	mkdir -p build
Phil Miller's avatar
Phil Miller committed
41 42
	cd build

philm's avatar
philm committed
43
	cmake ../${pkgbase}-${pkgver} \
Phil Miller's avatar
Phil Miller committed
44 45 46 47 48 49
		-DCMAKE_BUILD_TYPE=${_build_type} \
		-DCMAKE_INSTALL_PREFIX=${_installprefix} \
		-DCMAKE_SKIP_RPATH=ON \
		-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'

	make || return 1
philm's avatar
philm committed
50
}
Phil Miller's avatar
Phil Miller committed
51

philm's avatar
philm committed
52 53 54
package()
{
	cd ${srcdir}/build
Phil Miller's avatar
Phil Miller committed
55 56 57
	make DESTDIR=${pkgdir} install || return 1

}