desktop/kdelibs/PKGBUILD

143 lines
4.5 KiB
Bash
Raw Normal View History

2010-05-21 08:31:10 +08:00
#
# 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
2011-07-23 02:02:15 +08:00
# original name (used for the source and pkgnames)
_origname=kdelibs
2010-05-21 08:31:10 +08:00
#
# package info
#
2011-07-23 02:02:15 +08:00
pkgname=('kdelibs' 'kdelibs-doc')
2010-05-21 08:31:10 +08:00
arch=('i686' 'x86_64')
pkgver=${_kdever}
2011-09-03 23:54:25 +08:00
pkgrel=1
2010-05-21 08:31:10 +08:00
pkgdesc="split package"
url="http://www.kde.org"
license=('GPL' 'LGPL' 'FDL')
options=('docs' '!splithdr' 'splitdbg' 'log')
2010-05-21 08:31:10 +08:00
2011-06-04 08:12:20 +08:00
makedepends=("${_qtpkg}>=${_qtver}" "kde-common>=${_kdever}" "oxygen-icons>=${_kdever}"
'pkgconfig' 'cmake' 'automoc4' 'intltool' 'avahi' 'libgl' 'aspell' 'hspell' 'libxslt'
'shared-mime-info' 'upower' 'udisks' 'hal' 'xz>=5.0.0' 'enchant' 'jasper' 'openexr' 'giflib'
2011-07-23 02:02:15 +08:00
'strigi>=0.7.5' 'libxtst' 'soprano' 'ca-certificates' 'xdg-utils' 'qca' 'polkit-qt>=0.98.1'
2011-08-18 07:36:06 +08:00
'libxss' 'phonon' 'shared-desktop-ontologies>=0.7' 'attica>=0.2.0' 'krb5' 'libxcursor'
2011-06-04 08:12:20 +08:00
'hicolor-icon-theme' 'docbook-xsl' 'docbook-xml' 'dbusmenu-qt-git' 'grantlee-git' 'bzip2>=1.0.6' 'libzip')
2010-05-21 08:31:10 +08:00
2011-06-04 08:12:20 +08:00
replaces=('arts' 'kdelibs-experimental')
2010-05-21 08:31:10 +08:00
2011-07-23 02:02:15 +08:00
source=($_mirror/${_origname}-$_kdever.tar.bz2
2010-05-21 08:31:10 +08:00
01_chakra_tag.patch
02_kde_applications_menu.patch
2011-07-23 02:02:15 +08:00
03_chakra_menu.patch)
2011-06-04 08:12:20 +08:00
2011-07-23 02:02:15 +08:00
md5sums=(`grep ${_origname}-$_kdever.tar.bz2 ../kde-sc.md5 | cut -d" " -f1`
'40ba51f0c50ced94dfffe667ec856950' # 01_chakra_tag.patch
'e94450ba5430ea9c1e33bad9ae38ca2d' # 02_kde_applications_menu.patch
'53b85403e4dd8f9146933c52ca23243e') # 03_chakra_menu.patch
2010-05-21 08:31:10 +08:00
#
# build function
#
build()
{
2011-07-23 02:02:15 +08:00
cd ${srcdir}/${_origname}-${pkgver}
2010-05-21 08:31:10 +08:00
# main patches
msg "applying main patchset ..."
2011-07-23 02:02:15 +08:00
patch -Np1 -i ${srcdir}/01_chakra_tag.patch || return 1
patch -Np1 -i ${srcdir}/02_kde_applications_menu.patch || return 1
patch -Np1 -i ${srcdir}/03_chakra_menu.patch || return 1
2010-05-21 08:31:10 +08:00
# fixes
2011-04-02 06:39:20 +08:00
# msg "applying fixes ..."
2011-07-23 02:02:15 +08:00
cd ..
2010-05-21 08:31:10 +08:00
msg "starting build ..."
mkdir -p build
cd build
2011-07-23 02:02:15 +08:00
cmake ../${_origname}-${pkgver} \
2010-05-21 08:31:10 +08:00
-DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DSYSCONF_INSTALL_DIR=/etc \
-DHTML_INSTALL_DIR=/usr/share/doc/kde/html \
-DKDE_DISTRIBUTION_TEXT='Chakra' \
-DKDE_DEFAULT_HOME='.kde4' \
-DWITH_FAM=OFF \
-DKAUTH_BACKEND=PolkitQt-1 \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
2011-07-23 02:02:15 +08:00
make VERBOSE=1 || return 1
2010-05-21 08:31:10 +08:00
}
package_kdelibs()
{
pkgdesc="KDE Core Libraries"
depends=("${_qtpkg}>=${_qtver}" "kde-common>=${_kdever}" "oxygen-icons>=${_kdever}"
2011-01-06 02:18:58 +08:00
'shared-mime-info' 'upower' 'udisks' 'xz>=5.0.0' 'enchant' 'jasper' 'openexr' 'giflib'
2011-06-04 08:12:20 +08:00
'strigi' 'libxtst' 'soprano' 'ca-certificates' 'xdg-utils' 'qca' 'polkit-qt>=0.98.1'
2011-08-18 07:36:06 +08:00
'libxss' 'phonon' 'shared-desktop-ontologies>=0.5' 'attica>=0.2.0' 'krb5' 'libxcursor'
2011-06-04 08:12:20 +08:00
'hicolor-icon-theme' 'dbusmenu-qt-git' 'grantlee-git')
2010-05-21 08:31:10 +08:00
2011-06-04 08:12:20 +08:00
optdepends=('phonon-gstreamer : GStreamer Phonon backend (default)'
'phonon-xine : Xine Phonon backend'
2010-05-21 08:31:10 +08:00
'phonon-mplayer : MPlayer Phonon backend'
'phonon-vlc : VLC Phonon backend'
'avahi : Service discovery on your local network'
'aspell : Spell checking'
2011-09-05 06:16:21 +08:00
'hspell : Hebrew spell checking'
'hal : Legacy hardware support')
2010-05-21 08:31:10 +08:00
2011-07-23 02:02:15 +08:00
provides=("${_origname}=${_kdever}")
2010-08-18 03:05:15 +08:00
replaces=('kdelibs-experimental')
2011-06-04 08:12:20 +08:00
groups=("kde" "kde-minimal" "kde-uninstall")
2011-07-23 02:02:15 +08:00
install=${_origname}.install
2010-05-21 08:31:10 +08:00
cd ${srcdir}/build
2011-07-23 02:02:15 +08:00
make DESTDIR=${pkgdir} install || return 1
2010-05-21 08:31:10 +08:00
# link cert bundle to the one from ca-certificates
rm -f ${pkgdir}/usr/share/apps/kssl/ca-bundle.crt
ln -sf /etc/ssl/certs/ca-certificates.crt ${pkgdir}/usr/share/apps/kssl/ca-bundle.crt
# put docu into separate package
2010-05-22 06:25:44 +08:00
mv -v ${pkgdir}/usr/share/doc ${srcdir}/
mv -v ${pkgdir}/usr/share/man ${srcdir}/
2010-05-21 08:31:10 +08:00
# include our patches into the package
ls -1 ${startdir}/*.patch &>/dev/null 2>&1
if [ "$?" = "0" ]; then
warning "incuding patches into package"
rm -rf ${startdir}/*experimental*.patch
2011-07-23 02:02:15 +08:00
mkdir -p ${pkgdir}/usr/share/chakra/patches/${_origname} &>/dev/null
2010-05-21 08:31:10 +08:00
for i in ${startdir}/*.patch; do
msg "$i"
2011-07-23 02:02:15 +08:00
cp $i ${pkgdir}/usr/share/chakra/patches/${_origname}/ &>/dev/null
2010-05-21 08:31:10 +08:00
done
else
warning "no patches found, skipping to include them into the package..."
fi
}
package_kdelibs-doc()
{
pkgdesc="KDE Core Libraries - Documentation"
2011-06-04 08:12:20 +08:00
groups=("kde" "kde-doc" "kde-uninstall")
2010-05-21 08:31:10 +08:00
mkdir -p ${pkgdir}/usr/share
mv ${srcdir}/doc ${pkgdir}/usr/share
mv ${srcdir}/man ${pkgdir}/usr/share
}