From 58fae955bbd109651e4aaaf6085f16b54621cee2 Mon Sep 17 00:00:00 2001 From: Manuel Date: Tue, 25 Jun 2013 20:40:55 +0000 Subject: [PATCH] Add ksystemlog pkgbuild, the patch is not proper anymore... we should imho drop this pkg from the ISO --- kdeadmin-ksystemlog/PKGBUILD | 53 ++++++++++ .../kdeadmin.install | 0 .../syslog-path.patch | 0 kdeadmin/PKGBUILD | 97 ------------------- 4 files changed, 53 insertions(+), 97 deletions(-) create mode 100644 kdeadmin-ksystemlog/PKGBUILD rename {kdeadmin => kdeadmin-ksystemlog}/kdeadmin.install (100%) rename {kdeadmin => kdeadmin-ksystemlog}/syslog-path.patch (100%) delete mode 100644 kdeadmin/PKGBUILD diff --git a/kdeadmin-ksystemlog/PKGBUILD b/kdeadmin-ksystemlog/PKGBUILD new file mode 100644 index 000000000..5cbebb23b --- /dev/null +++ b/kdeadmin-ksystemlog/PKGBUILD @@ -0,0 +1,53 @@ +# +# KDE SC Packages for Chakra, part of chakra-project.org +# +# maintainer Manuel Tortosa + +# include global config +source ../_buildscripts/${current_repo}-${_arch}-cfg.conf + +_pkgname="ksystemlog" +pkgname="kdeadmin-ksystemlog" +arch=('x86_64') +pkgver=${_kdever} +pkgrel=1 +pkgdesc="Log viewer" +screenshot="http://www.kde.org/images/screenshots/ksystemlog.png" +depends=("kde-runtime>=${_kdever}") +groups=("kdeadmin" "kde" "kde-uninstall") +conflicts=("kdeadmin-doc") +categories=('system') +url="http://www.kde.org/" +license=('GPL' 'LGPL' 'FDL') +install=kdeadmin.install +options=('docs' '!splithdr' 'splitdbg' 'log') +makedepends=('pkg-config' 'cmake' 'automoc4' 'docbook-xsl') + +source=("$_mirror/${_pkgname}-$_kdever.tar.xz" + "syslog-path.patch") +md5sums=(`grep ${_pkgname}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1` + '4b0c3e0a7b7561185e20014fcbc1118e') + +build() { + cd ${srcdir}/${_pkgname}-${pkgver} + + # msg "fixing syslog path" + # patch -p1 -i ${srcdir}/syslog-path.patch + + cd ${srcdir} + rm -rf build + mkdir build && cd build + + cmake ../${_pkgname}-${pkgver} \ + -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 +} + +package() { + cd ${srcdir}/build + make DESTDIR=${pkgdir} install +} + diff --git a/kdeadmin/kdeadmin.install b/kdeadmin-ksystemlog/kdeadmin.install similarity index 100% rename from kdeadmin/kdeadmin.install rename to kdeadmin-ksystemlog/kdeadmin.install diff --git a/kdeadmin/syslog-path.patch b/kdeadmin-ksystemlog/syslog-path.patch similarity index 100% rename from kdeadmin/syslog-path.patch rename to kdeadmin-ksystemlog/syslog-path.patch diff --git a/kdeadmin/PKGBUILD b/kdeadmin/PKGBUILD deleted file mode 100644 index 594bded3c..000000000 --- a/kdeadmin/PKGBUILD +++ /dev/null @@ -1,97 +0,0 @@ -# -# KDE SC Packages for Chakra, part of chakra-project.org -# -# maintainer Manuel Tortosa - -# include global config -source ../_buildscripts/${current_repo}-${_arch}-cfg.conf - -pkgbase=('kdeadmin') -pkgname=('kdeadmin-kcron' - 'kdeadmin-kuser' - 'kdeadmin-ksystemlog') - -arch=('x86_64') -pkgver=${_kdever} -pkgrel=1 -pkgdesc="split package" -url="http://www.kde.org/" -license=('GPL' 'LGPL' 'FDL') -install=kdeadmin.install -options=('docs' '!splithdr' 'splitdbg' 'log') - -makedepends=('pkgconfig' 'cmake' 'automoc4' "kdepimlibs>=${_kdever}" "kde-runtime>=${_kdever}" - "kdebindings-pykde4>=${_kdever}" "kdepim-runtime>=${_kdever}" "docbook-xsl") - -source=("$_mirror/${pkgbase}-$_kdever.tar.xz" - "syslog-path.patch") - -md5sums=(`grep ${pkgbase}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1` - '4b0c3e0a7b7561185e20014fcbc1118e') - -build() { - cd ${srcdir}/${pkgbase}-${pkgver} - - msg "fixing syslog path" - patch -p1 -i ${srcdir}/syslog-path.patch - - # Set KUser default starting user to 1000 - sed -i "s|ID 500 CACHE|ID 1000 CACHE|" kuser/CMakeLists.txt - - cd ${srcdir} - rm -rf build - mkdir build && cd build - - msg "starting build ..." - cmake ../${pkgbase}-${pkgver} \ - -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' \ - -DBUILD_strigi-analyzer=OFF - make -} - -package_kdeadmin-kcron() { - pkgdesc="Crontab editor" - depends=("kde-runtime>=${_kdever}") - groups=("${pkgbase}" "kde" "kde-uninstall") - conflicts=("kdeadmin-doc") - categories=('system') - - splitdirs="kcron doc/kcron" - for i in ${splitdirs} ; do - cd ${srcdir}/build/${i} - make DESTDIR=${pkgdir} install || return 1 - done -} - -package_kdeadmin-ksystemlog() { - pkgdesc="Log viewer" - screenshot="http://www.kde.org/images/screenshots/ksystemlog.png" - depends=("kde-runtime>=${_kdever}") - groups=("${pkgbase}" "kde" "kde-uninstall") - conflicts=("kdeadmin-doc") - categories=('system') - - splitdirs="ksystemlog doc/ksystemlog" - for i in ${splitdirs} ; do - cd ${srcdir}/build/${i} - make DESTDIR=${pkgdir} install || return 1 - done -} - -package_kdeadmin-kuser() { - pkgdesc="Manage users and groups" - screenshot="http://www.kde.org/images/screenshots/kuser.png" - depends=("kde-runtime>=${_kdever}") - groups=("${pkgbase}" "kde" "kde-minimal" "kde-uninstall") - conflicts=("kdeadmin-doc") - categories=('system') - - splitdirs="kuser doc/kuser" - for i in ${splitdirs} ; do - cd ${srcdir}/build/${i} - make DESTDIR=${pkgdir} install || return 1 - done -}