mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 08:27:15 +08:00
Add kdenetwork-filesharing pkgbuild
This commit is contained in:
parent
58fae955bb
commit
863ad9f330
38
kdenetwork-filesharing/PKGBUILD
Normal file
38
kdenetwork-filesharing/PKGBUILD
Normal file
@ -0,0 +1,38 @@
|
||||
#
|
||||
# KDE SC Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
|
||||
# include global config
|
||||
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
||||
|
||||
pkgname="kdenetwork-filesharing"
|
||||
arch=('x86_64')
|
||||
pkgver=${_kdever}
|
||||
pkgrel=1
|
||||
pkgdesc='Konqueror properties dialog plugin to share a directory with the local network'
|
||||
depends=("kdelibs>=${_kdever}" 'smbclient')
|
||||
conflicts=("kdenetwork-common" "kdenetwork-doc")
|
||||
groups=("kde" "kdenetwork" "kde-uninstall")
|
||||
categories=('network')
|
||||
url="http://www.kde.org"
|
||||
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} \
|
||||
-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-filesharing/kdenetwork.install
Normal file
88
kdenetwork-filesharing/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