mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 06:37:15 +08:00
Add ktux pkgbuild and remove old kdetoys pkgbuild
This commit is contained in:
parent
f9af3c711d
commit
aa3d4142dd
@ -1,73 +0,0 @@
|
||||
#
|
||||
# KDE SC Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
||||
|
||||
# include global config
|
||||
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
||||
|
||||
pkgbase=('kdetoys')
|
||||
pkgname=('kdetoys-amor'
|
||||
'kdetoys-kteatime'
|
||||
'kdetoys-ktux')
|
||||
|
||||
arch=('x86_64')
|
||||
pkgver=${_kdever}
|
||||
pkgrel=1
|
||||
pkgdesc="split package"
|
||||
url="http://www.kde.org"
|
||||
license=('GPL' 'LGPL' 'FDL')
|
||||
|
||||
options=('docs' '!splithdr' 'splitdbg' 'log')
|
||||
|
||||
makedepends=('pkgconfig' 'cmake' 'automoc4' "kde-workspace>=${_kdever}")
|
||||
|
||||
source=($_mirror/${pkgbase}-$_kdever.tar.xz)
|
||||
md5sums=(`grep ${pkgbase}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`)
|
||||
|
||||
build() {
|
||||
cd ${srcdir}/${pkgbase}-${pkgver}
|
||||
|
||||
# build it
|
||||
msg "starting build ..."
|
||||
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_kdetoys-amor() {
|
||||
pkgdesc="Amusing Misuse Of Resources puts comic figures above your windows"
|
||||
conflicts=("kdetoys-common" "kdetoys-doc")
|
||||
groups=("kde" "kdetoys" "kde-uninstall")
|
||||
categories=('accessories')
|
||||
install=${pkgbase}.install
|
||||
|
||||
cd ${srcdir}/${pkgbase}-${pkgver}/amor
|
||||
make DESTDIR=${pkgdir} install
|
||||
}
|
||||
|
||||
package_kdetoys-kteatime() {
|
||||
pkgdesc="System tray applet that makes sure your tea doesn't get too strong"
|
||||
conflicts=("kdetoys-common" "kdetoys-doc")
|
||||
groups=("kde" "kdetoys" "kde-uninstall")
|
||||
categories=('accessories')
|
||||
install=${pkgbase}.install
|
||||
|
||||
cd ${srcdir}/${pkgbase}-${pkgver}/kteatime
|
||||
make DESTDIR=${pkgdir} install
|
||||
}
|
||||
|
||||
package_kdetoys-ktux() {
|
||||
pkgdesc="Tux-in-a-Spaceship screen saver"
|
||||
conflicts=("kdetoys-common")
|
||||
groups=("kde" "kdetoys" "kde-uninstall")
|
||||
categories=('accessories')
|
||||
install=${pkgbase}.install
|
||||
|
||||
cd ${srcdir}/${pkgbase}-${pkgver}/ktux
|
||||
make DESTDIR=${pkgdir} install
|
||||
}
|
||||
|
@ -1,88 +0,0 @@
|
||||
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