mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 02:44:37 +08:00
kdenetwork-kppp: Rename to kppp
This commit is contained in:
parent
9cafc2b738
commit
65b32ad722
39
kppp/PKGBUILD
Normal file
39
kppp/PKGBUILD
Normal file
@ -0,0 +1,39 @@
|
||||
# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
|
||||
# Contributors: Manuel Tortosa <manutortosa@chakra-project.org>
|
||||
|
||||
# Include global configuration
|
||||
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
||||
|
||||
pkgname="kppp"
|
||||
arch=('x86_64')
|
||||
pkgver=${_kdever}
|
||||
pkgrel=1
|
||||
pkgdesc="PPP client"
|
||||
url="http://kde.org/applications/internet/kppp/"
|
||||
depends=("kde-runtime>=${_kdever}" 'ppp')
|
||||
groups=("kde" "kdenetwork" "kde-uninstall")
|
||||
categories=('network')
|
||||
conflicts=("kdenetwork-common" "kdenetwork-doc" "kdenetwork-kppp")
|
||||
provides=("kdenetwork-kppp")
|
||||
replaces=("kdenetwork-kppp")
|
||||
install=kdenetwork.install
|
||||
license=('GPL' 'LGPL' 'FDL')
|
||||
options=('docs' '!header' 'debug' 'log')
|
||||
makedepends=('pkg-config' 'cmake' 'automoc4' 'docbook-xsl')
|
||||
source=("$_mirror/$pkgname-$_kdever.tar.xz")
|
||||
sha256sums=(`grep $pkgname-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`)
|
||||
|
||||
build() {
|
||||
cd ${srcdir}/$pkgname-${pkgver}
|
||||
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
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${srcdir}/${_pkgname}-${pkgver}
|
||||
make DESTDIR=${pkgdir} install
|
||||
}
|
88
kppp/kdenetwork.install
Normal file
88
kppp/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