mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-04 07:47:15 +08:00
77 lines
1.8 KiB
Bash
77 lines
1.8 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
|
|
|
|
|
|
|
|
# original name (used for the source and pkgnames)
|
|
_origname=kdepimlibs
|
|
|
|
|
|
|
|
#
|
|
# package info
|
|
#
|
|
pkgname=${_origname}
|
|
arch=('i686' 'x86_64')
|
|
pkgver=${_kdever}
|
|
pkgrel=1
|
|
|
|
pkgdesc="KDE Pim Libraries"
|
|
url="http://www.kde.org"
|
|
license=('GPL' 'LGPL' 'FDL')
|
|
|
|
install=${_origname}.install
|
|
options=('docs' '!splithdr' 'splitdbg')
|
|
|
|
replaces=("kdemod-${_origname}")
|
|
|
|
depends=("kdelibs>=${_kdever}" 'akonadi>=1.4.0' 'libical' 'gpgme')
|
|
makedepends=('pkgconfig' 'cmake' 'automoc4' 'boost' 'cyrus-sasl' 'openldap')
|
|
|
|
groups=("kde" "kde-complete" "kde-uninstall" "kde-minimal")
|
|
|
|
source=($_mirror/${_origname}-$_kdever.tar.bz2)
|
|
md5sums=(`grep ${_origname}-$_kdever.tar.bz2 ../kde-sc.md5 | cut -d" " -f1`)
|
|
|
|
|
|
|
|
#
|
|
# build and install
|
|
#
|
|
build()
|
|
{
|
|
msg "starting build ..."
|
|
cd ${srcdir}
|
|
mkdir -p build
|
|
cd build
|
|
|
|
cmake ../${_origname}-${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 || return 1
|
|
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
|
|
# # 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/${_origname} &>/dev/null
|
|
# for i in ${startdir}/*.patch; do
|
|
# msg "$i"
|
|
# cp $i ${pkgdir}/usr/share/chakra/patches/${_origname}/ &>/dev/null
|
|
# done
|
|
# else
|
|
# warning "no patches found, skipping to include them into the package..."
|
|
# fi
|
|
}
|