From d2a2f5a154297f42b82b9fdf90bd0bb1c2fe1113 Mon Sep 17 00:00:00 2001 From: Manuel Date: Tue, 18 Jun 2013 23:07:07 +0000 Subject: [PATCH] Start stripping kdesdk --- kdesdk-dolphin-plugins/PKGBUILD | 45 ++++++++++++++ kdesdk-dolphin-plugins/kdesdk.install | 88 +++++++++++++++++++++++++++ kdesdk-kompare/PKGBUILD | 43 +++++++++++++ kdesdk-kompare/kdesdk.install | 88 +++++++++++++++++++++++++++ 4 files changed, 264 insertions(+) create mode 100644 kdesdk-dolphin-plugins/PKGBUILD create mode 100644 kdesdk-dolphin-plugins/kdesdk.install create mode 100644 kdesdk-kompare/PKGBUILD create mode 100644 kdesdk-kompare/kdesdk.install diff --git a/kdesdk-dolphin-plugins/PKGBUILD b/kdesdk-dolphin-plugins/PKGBUILD new file mode 100644 index 000000000..296c90860 --- /dev/null +++ b/kdesdk-dolphin-plugins/PKGBUILD @@ -0,0 +1,45 @@ +# +# KDE SC Packages for Chakra, part of chakra-project.org +# +# maintainer Manuel Tortosa + +# include global config +source ../_buildscripts/${current_repo}-${_arch}-cfg.conf + +_pkgname="dolphin-plugins" +pkgname="kdesdk-dolphin-plugins" +arch=('x86_64') +pkgver=${_kdever} +pkgrel=1 +pkgdesc='Extra Dolphin plugins' +url="http://www.kde.org" +license=('GPL' 'LGPL' 'FDL') +depends=("kde-baseapps-dolphin>=${_kdever}" 'subversion' 'git' "kdesdk-kompare>=${_kdever}") +optdepends=('bzr: bazaar support' + 'git: git support' + 'mercurial: hg support' + 'subversion: svn support') +categories=('programming') +install=kdesdk.install +options=('docs' '!splithdr' 'splitdbg' 'log') +makedepends=('pkg-config' 'cmake' 'automoc4' 'docbook-xsl') + +source=("$_mirror/${_pkgname}-$_kdever.tar.xz") +md5sums=(`grep ${_pkgname}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`) + +build() { + cd ${srcdir}/${_pkgname}-${pkgver} + + msg "starting build ..." + cmake . -DCMAKE_BUILD_TYPE=${_build_type} \ + -DCMAKE_INSTALL_PREFIX=${_installprefix} \ + -DCMAKE_SKIP_RPATH=ON + make +} + + +package() { + cd ${srcdir}/${_pkgname}-${pkgver} + make DESTDIR=${pkgdir} install +} + diff --git a/kdesdk-dolphin-plugins/kdesdk.install b/kdesdk-dolphin-plugins/kdesdk.install new file mode 100644 index 000000000..8ac54a271 --- /dev/null +++ b/kdesdk-dolphin-plugins/kdesdk.install @@ -0,0 +1,88 @@ +post_install() { + if [ -e "/etc/chakra/updates.conf" ] ; then + + . /etc/chakra/updates.conf + + if [ "$UPDATE_XDG_ICON_DB" = "yes" ]; then + /usr/bin/chakra-update-icons + fi + + if [ "$UPDATE_GLOBAL_CONFIG" = "yes" ]; then + /usr/bin/chakra-update-sycoca + fi + + if [ "$UPDATE_USER_CONFIG" = "yes" ]; then + /usr/bin/chakra-update-user-sycoca + fi + else + echo " > WARNING" + echo " The package kde-common seems not to be installed," + echo " this can possibly break the installation. Just install it" + echo " manually after this installation/update, run the following" + echo " commands and restart KDE afterwards:" + echo " sudo chakra-config-updater" + echo " kbuildsycoca4" + echo " " + fi +} + +post_upgrade() { + if [ -e "/etc/chakra/updates.conf" ] ; then + + . /etc/chakra/updates.conf + + if [ "$UPDATE_XDG_ICON_DB" = "yes" ]; then + /usr/bin/chakra-update-icons + fi + + if [ "$UPDATE_GLOBAL_CONFIG" = "yes" ]; then + /usr/bin/chakra-update-sycoca + fi + + if [ "$UPDATE_USER_CONFIG" = "yes" ]; then + /usr/bin/chakra-update-user-sycoca + fi + else + echo " > WARNING" + echo " The package kde-common seems not to be installed," + echo " this can possibly break the installation. Just install it" + echo " manually after this installation/update, run the following" + echo " commands and restart KDE afterwards:" + echo " sudo chakra-config-updater" + echo " kbuildsycoca4" + echo " " + fi +} + +post_remove() { + if [ -e "/etc/chakra/updates.conf" ] ; then + + . /etc/chakra/updates.conf + + if [ "$UPDATE_XDG_ICON_DB" = "yes" ]; then + /usr/bin/chakra-update-icons + fi + + if [ "$UPDATE_GLOBAL_CONFIG" = "yes" ]; then + /usr/bin/chakra-update-sycoca + fi + + if [ "$UPDATE_USER_CONFIG" = "yes" ]; then + /usr/bin/chakra-update-user-sycoca + fi + else + echo " > WARNING" + echo " The package kde-common seems not to be installed," + echo " this can possibly break the installation. Just install it" + echo " manually after this installation/update, run the following" + echo " commands and restart KDE afterwards:" + echo " sudo chakra-config-updater" + echo " kbuildsycoca4" + echo " " + fi +} + +op=$1 +shift + +$op $* diff --git a/kdesdk-kompare/PKGBUILD b/kdesdk-kompare/PKGBUILD new file mode 100644 index 000000000..5318fc7de --- /dev/null +++ b/kdesdk-kompare/PKGBUILD @@ -0,0 +1,43 @@ +# +# KDE SC Packages for Chakra, part of chakra-project.org +# +# maintainer Manuel Tortosa + +# include global config +source ../_buildscripts/${current_repo}-${_arch}-cfg.conf + +_pkgname="kompare" +pkgname="kdesdk-kompare" +arch=('x86_64') +pkgver=${_kdever} +pkgrel=1 +pkgdesc="A KDE visual diff viewer" +screenshot="http://www.kde.org/images/screenshots/kompare.png" +url="http://www.kde.org" +license=('GPL' 'LGPL' 'FDL') +depends=("kde-runtime>=${_kdever}") +groups=("kde" "kde-devel" "kde-uninstall" "kdesdk") +categories=('programming') +conflicts=('kdesdk-doc') +install=kdesdk.install +options=('docs' '!splithdr' 'splitdbg' 'log') +makedepends=('pkgconfig' 'cmake' 'automoc4' 'docbook-xsl') +provides="kompare" + +source=("$_mirror/${_pkgname}-$_kdever.tar.xz") +md5sums=(`grep ${_pkgname}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`) + +build() { + cd ${srcdir}/${_pkgname}-${pkgver} + + msg "starting build ..." + cmake . -DCMAKE_BUILD_TYPE=${_build_type} \ + -DCMAKE_INSTALL_PREFIX=${_installprefix} \ + -DCMAKE_SKIP_RPATH=ON + make +} + +package() { + cd ${srcdir}/${_pkgname}-${pkgver} + make DESTDIR=${pkgdir} install +} diff --git a/kdesdk-kompare/kdesdk.install b/kdesdk-kompare/kdesdk.install new file mode 100644 index 000000000..8ac54a271 --- /dev/null +++ b/kdesdk-kompare/kdesdk.install @@ -0,0 +1,88 @@ +post_install() { + if [ -e "/etc/chakra/updates.conf" ] ; then + + . /etc/chakra/updates.conf + + if [ "$UPDATE_XDG_ICON_DB" = "yes" ]; then + /usr/bin/chakra-update-icons + fi + + if [ "$UPDATE_GLOBAL_CONFIG" = "yes" ]; then + /usr/bin/chakra-update-sycoca + fi + + if [ "$UPDATE_USER_CONFIG" = "yes" ]; then + /usr/bin/chakra-update-user-sycoca + fi + else + echo " > WARNING" + echo " The package kde-common seems not to be installed," + echo " this can possibly break the installation. Just install it" + echo " manually after this installation/update, run the following" + echo " commands and restart KDE afterwards:" + echo " sudo chakra-config-updater" + echo " kbuildsycoca4" + echo " " + fi +} + +post_upgrade() { + if [ -e "/etc/chakra/updates.conf" ] ; then + + . /etc/chakra/updates.conf + + if [ "$UPDATE_XDG_ICON_DB" = "yes" ]; then + /usr/bin/chakra-update-icons + fi + + if [ "$UPDATE_GLOBAL_CONFIG" = "yes" ]; then + /usr/bin/chakra-update-sycoca + fi + + if [ "$UPDATE_USER_CONFIG" = "yes" ]; then + /usr/bin/chakra-update-user-sycoca + fi + else + echo " > WARNING" + echo " The package kde-common seems not to be installed," + echo " this can possibly break the installation. Just install it" + echo " manually after this installation/update, run the following" + echo " commands and restart KDE afterwards:" + echo " sudo chakra-config-updater" + echo " kbuildsycoca4" + echo " " + fi +} + +post_remove() { + if [ -e "/etc/chakra/updates.conf" ] ; then + + . /etc/chakra/updates.conf + + if [ "$UPDATE_XDG_ICON_DB" = "yes" ]; then + /usr/bin/chakra-update-icons + fi + + if [ "$UPDATE_GLOBAL_CONFIG" = "yes" ]; then + /usr/bin/chakra-update-sycoca + fi + + if [ "$UPDATE_USER_CONFIG" = "yes" ]; then + /usr/bin/chakra-update-user-sycoca + fi + else + echo " > WARNING" + echo " The package kde-common seems not to be installed," + echo " this can possibly break the installation. Just install it" + echo " manually after this installation/update, run the following" + echo " commands and restart KDE afterwards:" + echo " sudo chakra-config-updater" + echo " kbuildsycoca4" + echo " " + fi +} + +op=$1 +shift + +$op $*