mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
348 lines
9.0 KiB
Bash
348 lines
9.0 KiB
Bash
#
|
|
# KDE SC Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
#
|
|
# package info
|
|
#
|
|
pkgbase="kdesdk"
|
|
pkgname=('kdesdk-common'
|
|
'kdesdk-doc'
|
|
'kdesdk-kate'
|
|
'kdesdk-cervisia'
|
|
'kdesdk-kapptemplate'
|
|
'kdesdk-lokalize'
|
|
'kdesdk-okteta'
|
|
'kdesdk-kdeaccounts-plugin'
|
|
'kdesdk-kcachegrind'
|
|
'kdesdk-kmtrace'
|
|
'kdesdk-kompare'
|
|
'kdesdk-kpartloader'
|
|
'kdesdk-kprofilemethod'
|
|
'kdesdk-kstartperf'
|
|
'kdesdk-kuiviewer'
|
|
'kdesdk-poxml'
|
|
'kdesdk-scripts'
|
|
'kdesdk-umbrello')
|
|
|
|
arch=('i686' 'x86_64')
|
|
pkgver=${_kdever}
|
|
pkgrel=1
|
|
|
|
pkgdesc="split package"
|
|
url="http://www.kde.org"
|
|
license=('GPL' 'LGPL' 'FDL')
|
|
|
|
options=('docs' '!splithdr' 'splitdbg' 'log')
|
|
|
|
makedepends=('pkgconfig' 'cmake' 'automoc4' 'boost' "kdebase-runtime>=${_kdever}" 'antlr2' 'openjdk6'
|
|
"kdepimlibs>=${_kdever}" 'subversion' "kdebindings-python>=${_kdever}" "openjdk6") # "kdepim-runtime>=${_kdever}"
|
|
|
|
source=("$_mirror/${pkgbase}-$_kdever.tar.bz2")
|
|
#'fix-antlr2-executable.patch')
|
|
md5sums=(`grep ${pkgbase}-$_kdever.tar.bz2 ../kde-sc.md5 | cut -d" " -f1`)
|
|
#'2545efa41b5fcb5fec53c453d0f23c25')
|
|
#
|
|
# build function
|
|
#
|
|
build()
|
|
{
|
|
cd ${srcdir}/${pkgbase}-${pkgver}
|
|
|
|
# FIXME: plugin doesnt build: https://bugs.kde.org/show_bug.cgi?id=217769
|
|
sed -i -e "/snippets_tng/d" kate/plugins/CMakeLists.txt || return 1
|
|
|
|
msg "starting build ..."
|
|
cmake . -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 || return 1
|
|
}
|
|
|
|
#
|
|
# split-install functions
|
|
#
|
|
package_kdesdk-common()
|
|
{
|
|
pkgdesc="KDE Software Development Kit - Common files and libraries"
|
|
depends=("kdebase-runtime>=${_kdever}" "kdelibs>=${_kdever}" 'subversion')
|
|
groups=("kde" "kde-devel" "kde-uninstall" "kdesdk")
|
|
install=${pkgbase}.install
|
|
|
|
splitdirs="strigi-analyzer kioslave"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
|
|
# # include our patches into the package
|
|
# ls -1 ${startdir}/*.patch &>/dev/null 2>&1
|
|
# if [ "$?" = "0" ]; then
|
|
# warning "incuding patches into package"
|
|
# mkdir -p ${pkgdir}/usr/share/chakra/patches/${pkgbase} &>/dev/null
|
|
# for i in ${startdir}/*.patch; do
|
|
# msg "$i"
|
|
# cp $i ${pkgdir}/usr/share/chakra/patches/${pkgbase}/ &>/dev/null
|
|
# done
|
|
# else
|
|
# warning "no patches found, skipping to include them into the package..."
|
|
# fi
|
|
}
|
|
|
|
package_kdesdk-doc()
|
|
{
|
|
pkgdesc="KDE Software Development Kit - Documentation"
|
|
groups=("kde" "kde-devel" "kde-doc" "kde-uninstall" "kdesdk")
|
|
|
|
splitdirs="doc"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdesdk-kate()
|
|
{
|
|
pkgdesc="The KDE Advanced Text Editor"
|
|
depends=("${pkgbase}-common>=${_kdever}")
|
|
groups=("kde" "kde-devel" "kde-uninstall" "kdesdk")
|
|
provides=('kate')
|
|
install=${pkgbase}.install
|
|
|
|
splitdirs="kate"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdesdk-cervisia()
|
|
{
|
|
pkgdesc="A CVS GUI frontend for KDE"
|
|
depends=("${pkgbase}-common>=${_kdever}")
|
|
groups=("kde" "kde-devel" "kde-uninstall" "kdesdk")
|
|
provides=('cervisia')
|
|
install=${pkgbase}.install
|
|
|
|
splitdirs="cervisia"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdesdk-kapptemplate()
|
|
{
|
|
pkgdesc="KDE application template generator"
|
|
depends=("${pkgbase}-common>=${_kdever}")
|
|
groups=("kde" "kde-devel" "kde-uninstall" "kdesdk")
|
|
provides=('kapptemplate')
|
|
install=${pkgbase}.install
|
|
|
|
splitdirs="kapptemplate"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdesdk-lokalize()
|
|
{
|
|
pkgdesc="Computer aided translation system"
|
|
depends=("${pkgbase}-common>=${_kdever}" "kdebindings-python>=${_kdever}")
|
|
optdepends=('translate-toolkit: enable extra python script')
|
|
groups=("kde" "kde-devel" "kde-uninstall" "kdesdk")
|
|
provides=('lokalize')
|
|
install=${pkgbase}.install
|
|
|
|
splitdirs="lokalize"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdesdk-okteta()
|
|
{
|
|
pkgdesc="Okteta is a simple editor for the raw data of files, also known as a hex editor."
|
|
depends=("${pkgbase}-common>=${_kdever}" "kdebase-runtime>=${_kdever}"
|
|
"kdebase>=${_kdever}")
|
|
provides=('okteta')
|
|
groups=("kde" "kdesdk" "kde-uninstall")
|
|
install=${pkgbase}.install
|
|
|
|
splitdirs="okteta"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdesdk-kdeaccounts-plugin()
|
|
{
|
|
pkgdesc="Addressbook plugin that puts names/email addresses of all KDE SVN accounts into an addressbook"
|
|
depends=("${pkgbase}-common>=${_kdever}")
|
|
groups=("kde" "kde-devel" "kde-uninstall" "kdesdk")
|
|
install=${pkgbase}.install
|
|
|
|
splitdirs="kdeaccounts-plugin"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdesdk-kcachegrind()
|
|
{
|
|
pkgdesc="KDE profiler visualization"
|
|
depends=("${pkgbase}-common>=${_kdever}")
|
|
provides=('kcachegrind')
|
|
groups=("kde" "kde-devel" "kde-uninstall" "kdesdk")
|
|
install=${pkgbase}.install
|
|
|
|
splitdirs="kcachegrind"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdesdk-kmtrace()
|
|
{
|
|
pkgdesc="A KDE memory leak tracer"
|
|
depends=("${pkgbase}-common>=${_kdever}")
|
|
provides=('kmtrace')
|
|
groups=("kde" "kde-devel" "kde-uninstall" "kdesdk")
|
|
install=${pkgbase}.install
|
|
|
|
splitdirs="kmtrace"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdesdk-kompare()
|
|
{
|
|
pkgdesc="A KDE visual diff viewer"
|
|
depends=("${pkgbase}-common>=${_kdever}")
|
|
provides=('kompare')
|
|
groups=("kde" "kde-devel" "kde-uninstall" "kdesdk")
|
|
install=${pkgbase}.install
|
|
|
|
splitdirs="kompare"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdesdk-kpartloader()
|
|
{
|
|
pkgdesc="KPartloader is a very simple application to test loading of a KPart."
|
|
depends=("${pkgbase}-common>=${_kdever}")
|
|
provides=('kpartloader')
|
|
groups=("kde" "kde-devel" "kde-uninstall" "kdesdk")
|
|
install=${pkgbase}.install
|
|
|
|
splitdirs="kpartloader"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdesdk-kprofilemethod()
|
|
{
|
|
pkgdesc="Macros for profiling using QTime"
|
|
depends=("${pkgbase}-common>=${_kdever}")
|
|
provides=('kprofilemethod')
|
|
groups=("kde" "kde-devel" "kde-uninstall" "kdesdk")
|
|
install=${pkgbase}.install
|
|
|
|
splitdirs="kprofilemethod"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdesdk-kstartperf()
|
|
{
|
|
pkgdesc="Measures startup time for KDE applications"
|
|
depends=("${pkgbase}-common>=${_kdever}")
|
|
provides=('kstartperf')
|
|
groups=("kde" "kde-devel" "kde-uninstall" "kdesdk")
|
|
install=${pkgbase}.install
|
|
|
|
splitdirs="kstartperf"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdesdk-kuiviewer()
|
|
{
|
|
pkgdesc="KUIViewer is a utility to display and test .ui-files"
|
|
depends=("${pkgbase}-common>=${_kdever}")
|
|
provides=('kuiviewer')
|
|
groups=("kde" "kde-devel" "kde-uninstall" "kdesdk")
|
|
install=${pkgbase}.install
|
|
|
|
splitdirs="kuiviewer"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdesdk-poxml()
|
|
{
|
|
pkgdesc="Tools for using .po-files to translate DocBook XML files"
|
|
depends=("${pkgbase}-common>=${_kdever}" 'qt' 'antlr2')
|
|
groups=("kde" "kde-devel" "kde-uninstall" "kdesdk")
|
|
install=${pkgbase}.install
|
|
|
|
splitdirs="poxml"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdesdk-scripts()
|
|
{
|
|
pkgdesc="Extra scripts for the KDE SDK"
|
|
depends=("${pkgbase}-common>=${_kdever}" 'python')
|
|
groups=("kde" "kde-devel" "kde-uninstall" "kdesdk")
|
|
install=${pkgbase}.install
|
|
|
|
splitdirs="scripts"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kdesdk-umbrello()
|
|
{
|
|
pkgdesc="An UML modeling tool for KDE"
|
|
depends=("${pkgbase}-common>=${_kdever}")
|
|
provides=('umbrello')
|
|
groups=("kde" "kde-devel" "kde-uninstall" "kdesdk")
|
|
install=${pkgbase}.install
|
|
|
|
splitdirs="umbrello"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|