mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 11:27:15 +08:00
Add kopete pkgbuild
This commit is contained in:
parent
bed76d5c41
commit
4ce509e187
45
kdenetwork-kopete/PKGBUILD
Normal file
45
kdenetwork-kopete/PKGBUILD
Normal file
@ -0,0 +1,45 @@
|
||||
#
|
||||
# KDE SC Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
|
||||
# include global config
|
||||
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
||||
|
||||
_pkgname="kopete"
|
||||
pkgname="kdenetwork-kopete"
|
||||
arch=('x86_64')
|
||||
pkgver=${_kdever}
|
||||
pkgrel=1
|
||||
pkgdesc="Kopete, the instant messenger"
|
||||
url="http://kde.org/applications/internet/kopete/"
|
||||
depends=("kde-runtime>=${_kdever}" "kdepimlibs>=${_kdever}"
|
||||
'qca-ossl' 'libotr' 'libmsn' 'libidn' 'qimageblitz' 'libxss'
|
||||
'libv4l' 'mediastreamer' 'msilbc' 'libgadu')
|
||||
groups=("kde" "kdenetwork" "kde-uninstall")
|
||||
categories=('communication')
|
||||
conflicts=("kdenetwork-common" "kdenetwork-doc")
|
||||
install=kdenetwork.install
|
||||
license=('GPL' 'LGPL' 'FDL')
|
||||
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}
|
||||
|
||||
cmake . -DCMAKE_BUILD_TYPE=${_build_type} \
|
||||
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
||||
-DWITH_Xmms=OFF \
|
||||
-DWITH_qq=OFF \
|
||||
-DWITH_meanwhile=OFF \
|
||||
-DCMAKE_SKIP_RPATH=ON \
|
||||
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${srcdir}/${_pkgname}-${pkgver}
|
||||
make DESTDIR=${pkgdir} install
|
||||
}
|
88
kdenetwork-kopete/kdenetwork.install
Normal file
88
kdenetwork-kopete/kdenetwork.install
Normal file
@ -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 $*
|
Loading…
Reference in New Issue
Block a user