mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
129 lines
5.8 KiB
Bash
129 lines
5.8 KiB
Bash
# Maintainer: Manuel Tortosa <manutortosa@chakra-project.org>
|
|
# Contributors: H W Tovetjärn (totte) <totte@tott.es>
|
|
|
|
# Include global configuration
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
_origname=common
|
|
pkgname=kde-common
|
|
arch=('x86_64')
|
|
pkgver=${_kdever}
|
|
pkgrel=1
|
|
pkgdesc="KDE common configuration files, scripts and artwork"
|
|
url="http://www.kde.org"
|
|
license=('GPL')
|
|
options=('!debug' '!header' 'strip')
|
|
groups=("kde" "kde-minimal" "kde-uninstall")
|
|
depends=("${_qtpkg}>=${_qtver}" 'pinentry' 'openssh' 'bash>=4.2' 'glibc>=2.15')
|
|
provides=('tcp_wrappers')
|
|
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)
|
|
md5sums=('2afd86671ad0db31718157aecd46d528'
|
|
'0fe13835c8d796c9973cda670860ce19'
|
|
'630ffe7118eef8608a9e5e393a0b1e12'
|
|
'e77e132d6da1a8d897db2ba630915b0f'
|
|
'7ac00b16a352d785e51ca6c6e5971926'
|
|
'd6ec8571c06beb8c58ae360e489ae0a0'
|
|
'7e20dbe3aece786768f35b151176bb66'
|
|
'1e8e17937d35c82ce9b2ad9821ce50b7'
|
|
'd2a96ab0146bc95c826b666fd14f4a36'
|
|
'bc5b22b54679603acd85746303bd9ad7'
|
|
'b88ceca59e3ef046ac21fb612977dd43'
|
|
'0a25b19c8493dae1b5a18cc57125ce6b'
|
|
'535501ac9f3ad05ddd18f8cfee4a2e06'
|
|
'78a20a4ccaf943f5a2089f4d436fdf32'
|
|
'd3fcef1c7affa098683a09f26415d8ef'
|
|
'aaa1958b14518e9b0193afe497da830e'
|
|
'4e974016ca509f187b4549d95877bacc'
|
|
'4845aff75b2162d53672b89fa6eef6f4'
|
|
'9fa87f4ad4c00de34286165b7c4d2887'
|
|
'b69be64a51c1f7dd69a6114d99498872'
|
|
'466d7fc7cab5738d674df45fdeee4eb0'
|
|
'08e25ad7487a913ea5fe03ebe5f495cd'
|
|
'7daec96c125e1e238a35f31ea4a476f0'
|
|
'18e8d01124b19f7df2937c06e177bf7f')
|
|
|
|
package() {
|
|
# 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
|
|
#install -D -m755 -o root -g root ${srcdir}/kdm.daemon ${pkgdir}/etc/rc.d/kdm
|
|
|
|
# Install configuration 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
|
|
install -D -m755 -o root -g root ${srcdir}/updates.conf ${pkgdir}/etc/chakra/updates.conf
|
|
|
|
# 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
|
|
patch -p2 < ${srcdir}/servicemenu-rootactions.patch
|
|
install -Dm755 rootactions-servicemenu.pl ${pkgdir}/usr/bin/rootactions-servicemenu.pl
|
|
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
|
|
|
|
# Install all other service menus
|
|
install -m755 ${srcdir}/servicemenu-copy-path.desktop ${pkgdir}/usr/share/kde4/services/ServiceMenus/copy-path.desktop
|
|
|
|
install -m755 ${srcdir}/102825-compressattach.desktop ${pkgdir}/usr/share/kde4/services/ServiceMenus/compress-attach.desktop
|
|
sed "s~Icon=attach~Icon=mail-attachment~g" -i ${pkgdir}/usr/share/kde4/services/ServiceMenus/compress-attach.desktop
|
|
|
|
# Install Chakra icons
|
|
cd ${srcdir}/chakra-icons/
|
|
mkdir -p ${pkgdir}/usr/share/icons/hicolor/scalable/apps/
|
|
for n in flat shiny smooth shield; do
|
|
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/
|
|
}
|