APKBUILD 3.84 KB
Newer Older
Linux User's avatar
Linux User committed
1 2 3 4
# Contributor: k0r10n <k0r10n.dev@gmail.com>
# Maintainer:
pkgname=kde-workspace
pkgver=4.13.3
5
pkgrel=2
Linux User's avatar
Linux User committed
6 7 8 9 10
pkgdesc="base kde applications"
url="http://www.kde.org/"
arch="x86 x86_64"
license="GPL"
depends=
11
options="suid"
Linux User's avatar
Linux User committed
12 13 14 15 16
depends_dev="kde-runtime-dev qimageblitz-dev libxkbfile-dev
	     consolekit-dev libxcursor-dev libxrandr-dev libraw1394-dev
	     libxcomposite-dev libxtst-dev libxcb-dev xcb-util-dev
	     xcb-util-image-dev xcb-util-keysyms-dev xcb-util-renderutil-dev
	     pciutils-dev linux-pam-dev libusb-compat-dev lm_sensors-dev"
17
makedepends="$depends_dev cmake automoc4"
Linux User's avatar
Linux User committed
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 57 58 59 60
install="$pkgname.pre-install"
subpackages="$pkgname-dev $pkgname-doc"
source="http://download.kde.org/stable/${pkgver}/src/${pkgname}-4.11.11.tar.xz
	uint-fadeeffect-4.11.11.patch
	fix-headers-4.11.11.patch
	kdm.initd
	kde.pam
	kde-np.pam
	kscreensaver.pam"

_builddir="$srcdir"/${pkgname}-4.11.11
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 \
	      -DKDE4_BUILD_TESTS:BOOL=OFF \
	      -DWITH_Xmms:BOOL=OFF \
	      -DWITH_libgps:BOOL=OFF \
	      -DWITH_NepomukCore:BOOL=OFF \
	      -DWITH_Soprano:BOOL=OFF \
	      -DWITH_CkConnector:BOOL=OFF \
	      -DCMAKE_BUILD_TYPE=Release \
	      -DPYTHON_EXECUTABLE=/usr/bin/python2 \
	      -DINSTALL_PYTHON_FILES_IN_PYTHON_PREFIX=TRUE \
	      -Wno-dev "$_builddir" || return 1
	make || return 1
}

package() {
	cd "$_builddir"/build
	make DESTDIR="$pkgdir" install || return 1
	mkdir -p "$pkgdir"/usr/share/xsessions || return 1
61
	ln -sf /usr/share/apps/kdm/sessions/kde-plasma.desktop \
Linux User's avatar
Linux User committed
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
		"$pkgdir"/usr/share/xsessions/kde-plasma.desktop || return 1
	install -Dm755 "$srcdir"/kdm.initd "$pkgdir"/etc/init.d/kdm || return 1
}

md5sums="cbd3311713b42d4856c66281fbe7a212  kde-workspace-4.11.11.tar.xz
1f4ee19c55cc52371219c170806c65ad  uint-fadeeffect-4.11.11.patch
33775f5785b5fc70569e9d27dd33052d  fix-headers-4.11.11.patch
c7f28b898cb1a3916105c5919e7e7b5b  kdm.initd
83d73eb700bcf6d3bbc93008ed7e43e4  kde.pam
fd2a1c362a1e3c7f2f1e81773599b9cf  kde-np.pam
c2bd6228bd83ef8e7ab43866b70842fc  kscreensaver.pam"
sha256sums="f188b003c56d2a40f71d4eea8c91b7ae0febcf25c252c383913281fce73c4d73  kde-workspace-4.11.11.tar.xz
ca14056388ec4ebe08af105c52ae63e983b0959608e528814c91ed7da063ba99  uint-fadeeffect-4.11.11.patch
191b08a7e556d31be927e23aeab7e811d0123a55d53bfb4bb06d843da4c79051  fix-headers-4.11.11.patch
088283e0b36be851a1081f9c7bb42d05a6754b4cf92aabf0c850f9c8593cfca3  kdm.initd
d3a77d44ba510b7dc5aab6f8ebbd642c77513aec21079f817220d31f3dda8417  kde.pam
f00127469095832ef665732d505e7df146dc060fa15aadf44197da53cbb464ee  kde-np.pam
c71bb9071cb0f51db9bd4a19a1cc3d50048b012389c4b543fef48e202f227aad  kscreensaver.pam"
sha512sums="0f8076150f498e84875da1b18f8d596b0c16a3f5ddf5a838133fc9345f79c10faa7ff9c0f627c17b5dac5058af39c367d8a62b51d212ccbd07a0faded390d5f7  kde-workspace-4.11.11.tar.xz
355ad1d959ded30e2556faa5a2c6583466ccc550277c1e5db1dea6724d23612723b4f951f35e43bc447c6de4bcfff10f0f1d2eece5f7dcba9b08ba4c47cc1e39  uint-fadeeffect-4.11.11.patch
e452a9ea35193045fa11bb0e2cb1017b43051ca0b3d439144ce2bedb2ce48da9391031db2c99166db208d1cd3667c81e62c31a1d5d3169ea5d39cea43a24a9a5  fix-headers-4.11.11.patch
4de002fd46f97e7e94e989c4f69ec6a967aa11446c8c3d0ce0b3bef2006809b2d6c05d56f2c65cececcffd8310cb5c7f54235f5bd8c0954d258a1d45425be2fb  kdm.initd
a3a69852c7479c826a6502a81ed41e182e8dbb1b8ecf672e0b7229c7f385cbe7467b3d60f98d0fdf96d50fb476cbf7d5952d16750294d47addfcbbbd3456ae99  kde.pam
41dbf4c4e31d3139fcea3d27c459e013c045a73e35b1dc3534791705a18ec30b3659ba734258313eff407bf9c803845f609e1426d09df78a1ee578dff10c210f  kde-np.pam
91e19415db832a67dcf9494af869c07f5cbfe8e16a74f3857c2b1940a17a1317c1b074446428f5f5d7b5aaf10eee8274e3b9df02935101d7fc73d8e01dc03e76  kscreensaver.pam"