PKGBUILD 5.77 KB
Newer Older
Phil Miller's avatar
Phil Miller committed
1 2 3
#
# KDE SC Packages for Chakra, part of chakra-project.org
#
Anke's avatar
Anke committed
4
# maintainer Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
Phil Miller's avatar
Phil Miller committed
5 6 7 8

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

Phil's avatar
Phil committed
9 10 11
# original name (used for the source and pkgnames)
_origname=common

Phil Miller's avatar
Phil Miller committed
12
pkgname=kde-common
Manuel's avatar
Manuel committed
13
arch=('x86_64')
Phil Miller's avatar
Phil Miller committed
14
pkgver=${_kdever}
15
pkgrel=1
Phil Miller's avatar
Phil Miller committed
16 17 18 19 20 21

pkgdesc="KDE SC - Common Configuration Files, Scripts and Artwork"
url="http://www.kde.org"
license=('GPL')
options=('!splitdbg' '!splithdr' 'strip')

Manuel's avatar
Manuel committed
22
groups=("kde" "kde-minimal" "kde-uninstall")
Phil Miller's avatar
Phil Miller committed
23 24

# also add some obvious dependencies here, as there are users out there who dont update such stuff
Manuel's avatar
Manuel committed
25
depends=("${_qtpkg}>=${_qtver}" 'pinentry' 'openssh' 'bash>=4.2' 'glibc>=2.15')
Manuel's avatar
Manuel committed
26
provides=('tcp_wrappers')
Phil Miller's avatar
Phil Miller committed
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

install=kde-common.install

source=(http://www.kde-apps.org/CONTENT/content-files/48411-rootactions_servicemenu_2.4.10.tar.gz
	servicemenu-copy-path.desktop
	http://www.kde-apps.org/CONTENT/content-files/102825-compressattach.desktop.bz2
	servicemenu-rootactions.patch
	Chakra-Bugs.desktop
	Chakra-ChangeLog.desktop
	Chakra-Code.desktop
	Chakra-Documentation.desktop
	Chakra-Donate.desktop
	Chakra-Forum.desktop
	Chakra-Homepage.desktop
	Chakra.directory
	chakra-config-updater.sh
	chakra-update-icons.sh
	chakra-update-mime.sh
	chakra-update-sycoca.sh
	chakra-update-user-sycoca.sh
	chakra-sysinfo.sh
	chakra-backup.sh
	Chakra-backup.desktop
	updates.conf
	chakra-icons.tar.gz
	agent-startup.sh
	agent-shutdown.sh)
Manuel's avatar
Manuel committed
54
md5sums=('2afd86671ad0db31718157aecd46d528'
55
         '0fe13835c8d796c9973cda670860ce19'
Manuel's avatar
Manuel committed
56 57
         '630ffe7118eef8608a9e5e393a0b1e12'
         'e77e132d6da1a8d897db2ba630915b0f'
58 59 60 61 62 63
         '7ac00b16a352d785e51ca6c6e5971926'
         'd6ec8571c06beb8c58ae360e489ae0a0'
         '7e20dbe3aece786768f35b151176bb66'
         '1e8e17937d35c82ce9b2ad9821ce50b7'
         'd2a96ab0146bc95c826b666fd14f4a36'
         'bc5b22b54679603acd85746303bd9ad7'
Manuel's avatar
Manuel committed
64 65
         'b88ceca59e3ef046ac21fb612977dd43'
         '0a25b19c8493dae1b5a18cc57125ce6b'
Manuel's avatar
Manuel committed
66 67 68 69 70
         '535501ac9f3ad05ddd18f8cfee4a2e06'
         '78a20a4ccaf943f5a2089f4d436fdf32'
         'd3fcef1c7affa098683a09f26415d8ef'
         'aaa1958b14518e9b0193afe497da830e'
         '4e974016ca509f187b4549d95877bacc'
71
         '4845aff75b2162d53672b89fa6eef6f4'
72
         '9fa87f4ad4c00de34286165b7c4d2887'
Manuel's avatar
Manuel committed
73 74
         'b69be64a51c1f7dd69a6114d99498872'
         '466d7fc7cab5738d674df45fdeee4eb0'
Manuel's avatar
Manuel committed
75
         '08e25ad7487a913ea5fe03ebe5f495cd'
Manuel's avatar
Manuel committed
76 77
         '7daec96c125e1e238a35f31ea4a476f0'
         '18e8d01124b19f7df2937c06e177bf7f')
Manuel's avatar
Manuel committed
78
  
Manuel's avatar
Manuel committed
79
build() {
Phil Miller's avatar
Phil Miller committed
80 81 82 83 84
	# install scripts for gpg/ssh-agent
	install -D -m 755 -o root -g root $srcdir/agent-startup.sh $pkgdir/etc/kde/env/agent-startup.sh
	install -D -m 755 -o root -g root $srcdir/agent-shutdown.sh $pkgdir/etc/kde/shutdown/agent-shutdown.sh

	# install kdm rc script
85
	#install -D -m755 -o root -g root ${srcdir}/kdm.daemon ${pkgdir}/etc/rc.d/kdm
Phil Miller's avatar
Phil Miller committed
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101

	# install config updater scripts
	install -D -m755 -o root -g root ${srcdir}/chakra-config-updater.sh ${pkgdir}/usr/bin/chakra-config-updater
	install -D -m755 -o root -g root ${srcdir}/chakra-update-icons.sh ${pkgdir}/usr/bin/chakra-update-icons
	install -D -m755 -o root -g root ${srcdir}/chakra-update-mime.sh ${pkgdir}/usr/bin/chakra-update-mime
	install -D -m755 -o root -g root ${srcdir}/chakra-update-sycoca.sh ${pkgdir}/usr/bin/chakra-update-sycoca
	install -D -m755 -o root -g root ${srcdir}/chakra-update-user-sycoca.sh ${pkgdir}/usr/bin/chakra-update-user-sycoca
	
	# install sysinfo script
	install -D -m755 -o root -g root ${srcdir}/chakra-sysinfo.sh ${pkgdir}/usr/bin/chakra-sysinfo

	# install backup script
	install -D -m755 -o root -g root ${srcdir}/chakra-backup.sh ${pkgdir}/usr/bin/chakra-backup
	install -D -m644 -o root -g root ${srcdir}/Chakra-backup.desktop ${pkgdir}/usr/share/applications/kde4/Chakra-backup.desktop

	# install config file for updates
Phil Miller's avatar
Phil Miller committed
102
	install -D -m755 -o root -g root ${srcdir}/updates.conf ${pkgdir}/etc/chakra/updates.conf
Phil Miller's avatar
Phil Miller committed
103 104 105 106 107 108

	# install root actions service menu
	cd ${srcdir}/rootactions_servicemenu_2.4.10/Root_Actions_2.4.10/dolphin-KDE4/
	mkdir -p ${pkgdir}/usr/share/kde4/services/ServiceMenus/
	install -m755 *.desktop ${pkgdir}/usr/share/kde4/services/ServiceMenus/
        cd ${srcdir}/rootactions_servicemenu_2.4.10/Root_Actions_2.4.10
philm's avatar
philm committed
109
        patch -p2 < ${srcdir}/servicemenu-rootactions.patch      
Phil Miller's avatar
Phil Miller committed
110
	install -Dm755 rootactions-servicemenu.pl ${pkgdir}/usr/bin/rootactions-servicemenu.pl
Manuel's avatar
Manuel committed
111 112 113
        sed "s~Icon=terminal~Icon=utilities-terminal~g" -i ${pkgdir}/usr/share/kde4/services/ServiceMenus/10-rootactionsfolders.desktop
        sed "s~Icon=terminal~Icon=utilities-terminal~g" -i ${pkgdir}/usr/share/kde4/services/ServiceMenus/11-rootactionsfiles.desktop
 
Phil Miller's avatar
Phil Miller committed
114 115
	# install all other service menus
	install -m755 ${srcdir}/servicemenu-copy-path.desktop ${pkgdir}/usr/share/kde4/services/ServiceMenus/copy-path.desktop
Manuel's avatar
Manuel committed
116

Phil Miller's avatar
Phil Miller committed
117
	install -m755 ${srcdir}/102825-compressattach.desktop ${pkgdir}/usr/share/kde4/services/ServiceMenus/compress-attach.desktop
Manuel's avatar
Manuel committed
118
        sed "s~Icon=attach~Icon=mail-attachment~g" -i ${pkgdir}/usr/share/kde4/services/ServiceMenus/compress-attach.desktop
Phil Miller's avatar
Phil Miller committed
119 120 121 122

	# install chakra icons
	cd ${srcdir}/chakra-icons/
	mkdir -p ${pkgdir}/usr/share/icons/hicolor/scalable/apps/
Manuel's avatar
Manuel committed
123
	for n in flat shiny smooth shield; do
Phil Miller's avatar
Phil Miller committed
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
		for i in 128 64 48 32 22 16; do
			mkdir -p ${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/
			install -D -m755 chakra-${n}-${i}.png ${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/chakra-${n}.png
		done
		install -D -m755 chakra-${n}.svgz ${pkgdir}/usr/share/icons/hicolor/scalable/apps/chakra-${n}.svgz
	done
	
	# install menu entries
	cd ${srcdir}
	install -m755 -d ${pkgdir}/usr/share/desktop-directories
	install -m755 -d ${pkgdir}/usr/share/applications/kde4
	install -m755 -d ${pkgdir}/usr/share/pixmaps
	install -m644 Chakra*.desktop ${pkgdir}/usr/share/applications/kde4
	install -m644 Chakra.directory ${pkgdir}/usr/share/desktop-directories/
}