mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 08:37:19 +08:00
* added pkgbuilds and other stuff
This commit is contained in:
parent
400abfbcbd
commit
d80dad9c1e
36
apps-amarok/PKGBUILD
Normal file
36
apps-amarok/PKGBUILD
Normal file
@ -0,0 +1,36 @@
|
||||
# $Id: PKGBUILD 72214 2010-03-13 20:06:09Z andrea $
|
||||
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
||||
# Contributor: damir <damir@archlinux.org>
|
||||
|
||||
pkgname=amarok
|
||||
replaces=('amarok-base' 'amarok-engine-xine' 'amarok-base-mysqlfree')
|
||||
pkgver=2.3.0
|
||||
pkgrel=1
|
||||
pkgdesc="A media player for KDE"
|
||||
arch=("i686" "x86_64")
|
||||
url="http://amarok.kde.org"
|
||||
license=('GPL2' 'LGPL2' 'FDL')
|
||||
depends=('kdebase-runtime' 'mysql' 'qtscriptgenerator' 'taglib-extras' 'liblastfm')
|
||||
makedepends=('pkgconfig' 'automoc4' 'cmake' 'libgpod' 'libmtp' 'loudmouth')
|
||||
optdepends=("libgpod: support Apple iPod audio devices"
|
||||
"libmtp: support for portable media devices"
|
||||
"loudmouth: backend needed by mp3tunes for syncing")
|
||||
install=${pkgname}.install
|
||||
source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.bz2")
|
||||
md5sums=('fc672a2848e36b3b44eb81dd1466e4f4')
|
||||
|
||||
build() {
|
||||
cd ${srcdir}
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ../${pkgname}-${pkgver} \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_SKIP_RPATH=ON \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
make || return 1
|
||||
}
|
||||
|
||||
package(){
|
||||
cd ${srcdir}/build
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
}
|
11
apps-amarok/amarok.install
Normal file
11
apps-amarok/amarok.install
Normal file
@ -0,0 +1,11 @@
|
||||
post_install() {
|
||||
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_install
|
||||
}
|
23
apps-emovix/PKGBUILD
Normal file
23
apps-emovix/PKGBUILD
Normal file
@ -0,0 +1,23 @@
|
||||
# $Id: PKGBUILD 37020 2009-04-30 00:06:28Z eric $
|
||||
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
|
||||
|
||||
pkgname=emovix
|
||||
pkgver=0.9.0
|
||||
pkgrel=4
|
||||
pkgdesc="Create Movix-CD's (also emovix plugin for k3b)"
|
||||
arch=(i686 x86_64)
|
||||
url="http://movix.sourceforge.net/"
|
||||
license=('GPL2')
|
||||
depends=('perl' 'cdrtools')
|
||||
options=('!makeflags')
|
||||
source=(http://downloads.sourceforge.net/sourceforge/movix/$pkgname-$pkgver.tar.gz)
|
||||
md5sums=('a96492f338824b24c5a9e714c57eddcf')
|
||||
|
||||
build() {
|
||||
cd $srcdir/$pkgname-$pkgver
|
||||
./configure --prefix=/usr || return 1
|
||||
make || return 1
|
||||
make DESTDIR=$pkgdir install || return 1
|
||||
find $pkgdir/usr/share/emovix -type d -exec chmod 755 {} \; || return 1
|
||||
}
|
||||
|
42
apps-k3b/PKGBUILD
Normal file
42
apps-k3b/PKGBUILD
Normal file
@ -0,0 +1,42 @@
|
||||
#
|
||||
# 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
|
||||
|
||||
pkgname=k3b
|
||||
pkgver=1.91.0rc2
|
||||
pkgrel=1
|
||||
depends=('kdebase-runtime' 'kdemultimedia-common' 'libsamplerate' 'libmad'
|
||||
'ffmpeg>=0.5' 'taglib>=1.4' 'libmpcdec>=1.2.5' 'libdvdread>=4.1.3'
|
||||
'cdrdao' 'cdrkit' 'shared-mime-info' 'libxft')
|
||||
makedepends=('cmake' 'pkgconfig' 'automoc4' )
|
||||
pkgdesc="Feature-rich and easy to handle CD burning application"
|
||||
arch=("i686" "x86_64")
|
||||
license=('GPL')
|
||||
install=$pkgname.install
|
||||
source=(http://downloads.sourceforge.net/sourceforge/k3b/${pkgname}-${pkgver}.tar.bz2)
|
||||
url="http://k3b.sourceforge.net/"
|
||||
optdepends=('dvd+rw-tools: for dvd burning support'
|
||||
'vcdimager: for vcd burning support'
|
||||
'transcode: for advanced mpeg conversion support'
|
||||
'emovix: for bootable multimedia cd/dvd support')
|
||||
options=(!libtool)
|
||||
|
||||
build() {
|
||||
# fix build
|
||||
export CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe -D__STDC_CONSTANT_MACROS"
|
||||
|
||||
cd ${srcdir}/
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ../${pkgname}-1.91.0 \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
make || return 1
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
}
|
||||
md5sums=('56d1c726a2771d341f59f08d5364d141')
|
12
apps-k3b/k3b.install
Normal file
12
apps-k3b/k3b.install
Normal file
@ -0,0 +1,12 @@
|
||||
post_install() {
|
||||
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
||||
update-mime-database usr/share/mime &> /dev/null
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_install
|
||||
}
|
37
apps-opera/PKGBUILD
Normal file
37
apps-opera/PKGBUILD
Normal file
@ -0,0 +1,37 @@
|
||||
# Maintainer: Daniel Isenmann <daniel@archlinux.org>
|
||||
# Contributor: dorphell <dorphell@archlinux.org>
|
||||
# Contributor: Sigitas Mazaliauskas <sigis@archlinux.us>
|
||||
|
||||
pkgname=opera
|
||||
pkgver=10.10
|
||||
_buildver=4742
|
||||
pkgrel=1
|
||||
pkgdesc="The Opera web browser"
|
||||
url="http://www.opera.com"
|
||||
depends=('qt')
|
||||
license=('custom:opera')
|
||||
arch=('i686' 'x86_64')
|
||||
source=(http://ftp.opera.com/pub/opera/linux/${pkgver/./}/final/en/i386/opera-${pkgver}.gcc4-qt4.i386.tar.bz2 opera.desktop)
|
||||
md5sums=('b22f377a7a85df3f7a3831fcd2a4b2e4'
|
||||
'43331f6889a24c55274968bb47ae824d')
|
||||
|
||||
[ "$CARCH" = "x86_64" ] && source=(http://ftp.opera.com/pub/opera/linux/${pkgver/./}/final/en/x86_64/opera-${pkgver}.gcc4-qt4.x86_64.tar.bz2 opera.desktop)
|
||||
[ "$CARCH" = "x86_64" ] && md5sums=('bedd94ab5a663d8e4b694da4772471b4'
|
||||
'43331f6889a24c55274968bb47ae824d')
|
||||
build() {
|
||||
if [ "$CARCH" = "x86_64" ]; then
|
||||
cd ${srcdir}/opera-${pkgver}-${_buildver}.gcc4-qt4.x86_64
|
||||
else cd ${srcdir}/opera-${pkgver}-${_buildver}.gcc4-qt4.i386
|
||||
fi
|
||||
|
||||
./install.sh DESTDIR=${pkgdir}
|
||||
|
||||
install -D -m 644 ${srcdir}/opera.desktop ${pkgdir}/usr/share/applications/opera.desktop
|
||||
install -D -m 644 LICENSE ${pkgdir}/usr/share/licenses/opera/license.txt
|
||||
|
||||
if [ "$CARCH" = "x86_64" ]; then
|
||||
install -D -m 644 ${srcdir}/opera-${pkgver}-${_buildver}.gcc4-qt4.x86_64/usr/share/pixmaps/opera.xpm ${pkgdir}/usr/share/pixmaps/opera.xpm
|
||||
else
|
||||
install -D -m 644 ${srcdir}/opera-${pkgver}-${_buildver}.gcc4-qt4.i386/usr/share/pixmaps/opera.xpm ${pkgdir}/usr/share/pixmaps/opera.xpm
|
||||
fi
|
||||
}
|
91
apps-opera/opera.desktop
Executable file
91
apps-opera/opera.desktop
Executable file
@ -0,0 +1,91 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Exec=opera %u
|
||||
Terminal=false
|
||||
Icon=opera
|
||||
Type=Application
|
||||
MimeType=text/html
|
||||
Categories=Application;Network;
|
||||
Name=Opera
|
||||
Name[ar]=أوبرا
|
||||
Name[bn]=অপেরা
|
||||
Name[eo]=Opero
|
||||
Name[fa]=اپرا
|
||||
Name[hi]=ऑपेरा
|
||||
Name[ko]=오페라
|
||||
Name[lo]=ໂອເປຣາ
|
||||
Name[pa]=ਓਪੇਰਾ
|
||||
Name[ta]=ஓபேரா
|
||||
Name[th]=โอเปรา
|
||||
GenericName=Web Browser
|
||||
GenericName[af]=Web Blaaier
|
||||
GenericName[ar]=متصفح ويب
|
||||
GenericName[az]=Veb Səyyahı
|
||||
GenericName[bg]=Браузър
|
||||
GenericName[bn]=ওয়েব ব্রাউজার
|
||||
GenericName[br]=Furcher ar Gwiad
|
||||
GenericName[bs]=WWW Preglednik
|
||||
GenericName[ca]=Fullejador web
|
||||
GenericName[cs]=WWW prohlížeč
|
||||
GenericName[cy]=Porydd Gwe
|
||||
GenericName[da]=Browser
|
||||
GenericName[de]=Web-Browser
|
||||
GenericName[el]=Περιηγητής Ιστού
|
||||
GenericName[eo]=TTT-legilo
|
||||
GenericName[es]=Navegador web
|
||||
GenericName[et]=Veebilehitseja
|
||||
GenericName[eu]=Web arakatzailea
|
||||
GenericName[fa]=مرورگر وب
|
||||
GenericName[fi]=WWW-selain
|
||||
GenericName[fo]=Alnótsfar
|
||||
GenericName[fr]=Navigateur web
|
||||
GenericName[fy]=Webblêder
|
||||
GenericName[ga]=Brabhsálaí Lín
|
||||
GenericName[gl]=Navegador Web
|
||||
GenericName[he]=דפדפן אינטרנט
|
||||
GenericName[hi]=वेब ब्राउज़र
|
||||
GenericName[hr]=Web preglednik
|
||||
GenericName[hu]=Webböngésző
|
||||
GenericName[is]=Vafri
|
||||
GenericName[it]=Browser Web
|
||||
GenericName[ja]=ウェブブラウザ
|
||||
GenericName[km]=កម្មវិធីរុករកបណ្ដាញ
|
||||
GenericName[ko]=웹 브라우저
|
||||
GenericName[lo]=ເວັບບຣາວເຊີ
|
||||
GenericName[lt]=Žiniatinklio naršyklė
|
||||
GenericName[lv]=Tīmekļa Pārlūks
|
||||
GenericName[mk]=Прелистувач на Интернет
|
||||
GenericName[mn]=Веб-Хөтөч
|
||||
GenericName[ms]=Pelayar Web
|
||||
GenericName[nb]=Nettleser
|
||||
GenericName[nds]=Nettkieker
|
||||
GenericName[nl]=Webbrowser
|
||||
GenericName[nn]=Nettlesar
|
||||
GenericName[nso]=Seinyakisi sa Web
|
||||
GenericName[pa]=ਵੈਬ ਝਲਕਾਰਾ
|
||||
GenericName[pl]=Przeglądarka WWW
|
||||
GenericName[pt]=Navegador Web
|
||||
GenericName[pt_BR]=Navegador Web
|
||||
GenericName[ro]=Navigator de web
|
||||
GenericName[ru]=Веб-браузер
|
||||
GenericName[rw]=Mucukumbuzi Urubuga
|
||||
GenericName[se]=Fierpmádatlogan
|
||||
GenericName[sk]=Webový prehliadač
|
||||
GenericName[sl]=Spletni brskalnik
|
||||
GenericName[sr]=Веб прегледач
|
||||
GenericName[sr@Latn]=Veb pregledač
|
||||
GenericName[ss]=Ibrawuza yeWeb
|
||||
GenericName[sv]=Webbläsare
|
||||
GenericName[ta]=வலை உலாவி
|
||||
GenericName[tg]=Тафсиргари вэб
|
||||
GenericName[th]=เว็บบราวเซอร์
|
||||
GenericName[tr]=Web Tarayıcı
|
||||
GenericName[uk]=Навігатор Тенет
|
||||
GenericName[uz]=Веб-браузер
|
||||
GenericName[ven]=Buronza ya Webu
|
||||
GenericName[vi]=Trình duyệt Web
|
||||
GenericName[wa]=Betchteu waibe
|
||||
GenericName[xh]=Umkhangeli zincwadi we Web
|
||||
GenericName[zh_CN]=Web 浏览器
|
||||
GenericName[zh_TW]=網頁瀏覽器
|
||||
GenericName[zu]=Umcingi we-Web
|
35
apps-quassel/PKGBUILD
Normal file
35
apps-quassel/PKGBUILD
Normal file
@ -0,0 +1,35 @@
|
||||
# $Id: PKGBUILD 11053 2010-02-05 09:31:08Z vegai $
|
||||
# Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
|
||||
|
||||
pkgname=quassel
|
||||
pkgver=0.6.1
|
||||
pkgrel=1
|
||||
pkgdesc="QT4 irc client with a separated core"
|
||||
url="http://quassel-irc.org"
|
||||
arch=('i686' 'x86_64')
|
||||
license=('GPL')
|
||||
depends=('kdelibs' 'oxygen-icons' 'hicolor-icon-theme' 'libindicate-qt')
|
||||
makedepends=('cmake' 'automoc4')
|
||||
source=("$url/system/files/$pkgname-$pkgver.tar.bz2"
|
||||
'rc.quassel'
|
||||
'quassel.conf')
|
||||
install=quassel.install
|
||||
backup=(etc/conf.d/quassel.conf)
|
||||
|
||||
build() {
|
||||
cd ${srcdir}
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
cmake -D CMAKE_INSTALL_PREFIX=/usr/ -DWITH_KDE=1 -D CMAKE_BUILD_TYPE="Release" ../$pkgname-$pkgver/ -Wno-dev || return 1
|
||||
make || return 1
|
||||
make DESTDIR=${pkgdir} install
|
||||
|
||||
install -D -m755 ${srcdir}/rc.quassel \
|
||||
${pkgdir}/etc/rc.d/quassel || return 1
|
||||
install -D -m644 $srcdir/quassel.conf $pkgdir/etc/conf.d/quassel || return 1
|
||||
}
|
||||
md5sums=('569d310d06f124952009704d55a98100'
|
||||
'91e414cb313430a2360f1a594b1d6ed3'
|
||||
'479229556ba0dd94e3ce28e31e5deea9')
|
2
apps-quassel/quassel.conf
Normal file
2
apps-quassel/quassel.conf
Normal file
@ -0,0 +1,2 @@
|
||||
QUASSEL_USER=quassel
|
||||
LISTEN=127.0.0.1
|
26
apps-quassel/quassel.install
Normal file
26
apps-quassel/quassel.install
Normal file
@ -0,0 +1,26 @@
|
||||
post_install() {
|
||||
useradd -r -K SYS_UID_MAX=499 -K SYS_GID_MAX=499 -s /bin/sh -d /var/lib/quassel quassel
|
||||
mkdir -p /var/lib/quassel && chown -R quassel:quassel /var/lib/quassel
|
||||
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
[ `vercmp $2 0.5.2-1` -le 0 ] && (
|
||||
cat <<EOF
|
||||
|
||||
==> - quasselcore now runs as the quassel user
|
||||
==> - quasselcore now listens to port 127.0.0.1 by default
|
||||
==> - both of above are configurable: /etc/conf.d/quassel
|
||||
EOF
|
||||
/etc/rc.d/quassel stop
|
||||
post_install
|
||||
) || true
|
||||
}
|
||||
|
||||
pre_remove() {
|
||||
/etc/rc.d/quassel stop
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
userdel quassel
|
||||
}
|
41
apps-quassel/rc.quassel
Normal file
41
apps-quassel/rc.quassel
Normal file
@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
|
||||
. /etc/rc.conf
|
||||
. /etc/rc.d/functions
|
||||
. /etc/conf.d/quassel
|
||||
|
||||
PIDFILE=/var/run/quassel.pid
|
||||
PID=`pidof -o %PPID /usr/bin/quasselcore`
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
stat_busy "Starting Quassel Core"
|
||||
[ -z "$PID" ] && su -l -c "/usr/bin/quasselcore --configdir=/var/lib/quassel --listen=$LISTEN &" $QUASSEL_USER &>/dev/null
|
||||
if [ $? -gt 0 ]; then
|
||||
stat_fail
|
||||
else
|
||||
echo $PID > $PIDFILE
|
||||
add_daemon quassel
|
||||
stat_done
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
stat_busy "Stopping Quassel Core"
|
||||
[ ! -z "$PID" ] && kill $PID &> /dev/null
|
||||
if [ $? -gt 0 ]; then
|
||||
stat_fail
|
||||
else
|
||||
rm -f $PIDFILE
|
||||
rm_daemon quassel
|
||||
stat_done
|
||||
fi
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 {start|stop|restart}"
|
||||
esac
|
||||
exit 0
|
53
apps-rekonq-git/PKGBUILD
Normal file
53
apps-rekonq-git/PKGBUILD
Normal file
@ -0,0 +1,53 @@
|
||||
#
|
||||
# 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
|
||||
|
||||
pkgname=rekonq-git
|
||||
pkgver=20100523
|
||||
pkgrel=1
|
||||
pkgdesc="rekonq is a KDE web browser based on QtWebKit."
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://rekonq.sourceforge.net/"
|
||||
license=('GPL')
|
||||
groups=()
|
||||
depends=('kdelibs>=4.4.0' 'qt>=4.6')
|
||||
makedepends=('gcc' 'cmake' 'automoc4' 'git')
|
||||
provides=(rekonq)
|
||||
conflicts=(rekonq)
|
||||
replaces=()
|
||||
backup=()
|
||||
options=()
|
||||
source=()
|
||||
noextract=()
|
||||
md5sums=()
|
||||
|
||||
_gitroot="git://gitorious.org/rekonq/mainline.git"
|
||||
_gitname="mainline"
|
||||
|
||||
|
||||
build(){
|
||||
|
||||
cd $srcdir
|
||||
|
||||
if [[ -d $_gitname ]]; then
|
||||
(cd $_gitname && git pull origin)
|
||||
else
|
||||
git clone $_gitroot $_gitname
|
||||
fi
|
||||
|
||||
cd $_gitname
|
||||
|
||||
rm -rf build
|
||||
mkdir build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_SKIP_RPATH=ON \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr .. || return 1
|
||||
make || return 1
|
||||
make DESTDIR=${pkgdir} install
|
||||
}
|
||||
|
37
apps-rekonq/PKGBUILD
Normal file
37
apps-rekonq/PKGBUILD
Normal file
@ -0,0 +1,37 @@
|
||||
#
|
||||
# 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
|
||||
|
||||
pkgname=rekonq
|
||||
pkgver=0.4.0
|
||||
pkgrel=1
|
||||
pkgdesc='A WebKit based web browser for KDE'
|
||||
arch=('i686' 'x86_64')
|
||||
url='http://rekonq.sourceforge.net/'
|
||||
license=('GPL')
|
||||
depends=('kdelibs>=4.4.0' 'qt>=4.6')
|
||||
makedepends=('cmake' 'automoc4')
|
||||
install=${pkgname}.install
|
||||
source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
|
||||
md5sums=('607e826131d8ead1e48a7611ba2ef075')
|
||||
|
||||
build(){
|
||||
cd ${srcdir}
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ../${pkgname}-${pkgver} \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_SKIP_RPATH=ON \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
make || return 1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${srcdir}/build
|
||||
make DESTDIR=${pkgdir} install
|
||||
}
|
11
apps-rekonq/rekonq.install
Normal file
11
apps-rekonq/rekonq.install
Normal file
@ -0,0 +1,11 @@
|
||||
post_install() {
|
||||
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_install
|
||||
}
|
38
apps-smplayer/PKGBUILD
Normal file
38
apps-smplayer/PKGBUILD
Normal file
@ -0,0 +1,38 @@
|
||||
#
|
||||
# Chakra 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
|
||||
|
||||
pkgname=smplayer
|
||||
pkgver=0.6.9
|
||||
pkgrel=1
|
||||
pkgdesc="A complete front-end for MPlayer"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://smplayer.sourceforge.net/"
|
||||
license=('GPL')
|
||||
depends=('qt>=4.6.2' 'mplayer>=30526')
|
||||
source=(http://downloads.sourceforge.net/sourceforge/smplayer/${pkgname}-${pkgver}.tar.bz2)
|
||||
md5sums=('dfe874b386509de5df78537489f95004')
|
||||
|
||||
build() {
|
||||
cd ${srcdir}/${pkgname}-${pkgver}
|
||||
|
||||
# remove broken translation
|
||||
sed -i "s|translations/smplayer_gl.ts|#translations/smplayer_gl.ts|" src/smplayer.pro
|
||||
|
||||
make PREFIX=/usr || return 1
|
||||
make PREFIX=${pkgdir}/usr install || return 1
|
||||
|
||||
install -dm755 ${pkgdir}/usr/share/pixmaps
|
||||
ln -s /usr/share/icons/hicolor/64x64/apps/smplayer.png \
|
||||
${pkgdir}/usr/share/pixmaps/
|
||||
|
||||
sed -i 's|Exec=smplayer %U|Exec=smplayer %F|' ${pkgdir}/usr/share/applications/smplayer.desktop || return 1
|
||||
sed -i 's|Exec=smplayer -add-to-playlist %U|Exec=smplayer -add-to-playlist %F|' \
|
||||
${pkgdir}/usr/share/applications/smplayer_enqueue.desktop || return 1
|
||||
}
|
||||
|
33
apps-yakuake/PKGBUILD
Normal file
33
apps-yakuake/PKGBUILD
Normal file
@ -0,0 +1,33 @@
|
||||
#
|
||||
# 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
|
||||
|
||||
pkgname=yakuake
|
||||
pkgver=2.9.6
|
||||
pkgrel=1
|
||||
pkgdesc="A KDE konsole application with the look and feel of that in the Quake engine"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://yakuake.kde.org"
|
||||
license=('GPL')
|
||||
depends=('kdebase-konsole')
|
||||
makedepends=('cmake' 'automoc4')
|
||||
source=("http://download.berlios.de/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
|
||||
md5sums=('d5cbb912596fd1b3a92fdb04fe46cee0')
|
||||
|
||||
build() {
|
||||
cd ${srcdir}
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ../${pkgname}-${pkgver} \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_SKIP_RPATH=ON \
|
||||
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
make
|
||||
make DESTDIR=${pkgdir} install
|
||||
}
|
1234
kde-l10n/PKGBUILD
Normal file
1234
kde-l10n/PKGBUILD
Normal file
File diff suppressed because it is too large
Load Diff
203
kdeaccessibility/PKGBUILD
Normal file
203
kdeaccessibility/PKGBUILD
Normal file
@ -0,0 +1,203 @@
|
||||
#
|
||||
# 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=kdeaccessibility
|
||||
|
||||
|
||||
|
||||
#
|
||||
# package info
|
||||
#
|
||||
pkgbase=('kdeaccessibility')
|
||||
pkgname=('kdeaccessibility-common'
|
||||
'kdeaccessibility-doc'
|
||||
'kdeaccessibility-colorschemes'
|
||||
'kdeaccessibility-iconthemes'
|
||||
'kdeaccessibility-kmag'
|
||||
'kdeaccessibility-kmousetool'
|
||||
'kdeaccessibility-kmouth'
|
||||
'kdeaccessibility-kttsd')
|
||||
|
||||
# Disabled
|
||||
# 'kdeaccessibility-ksayit'
|
||||
|
||||
arch=('i686' 'x86_64')
|
||||
pkgver=${_kdever}
|
||||
pkgrel=1
|
||||
|
||||
pkgdesc="split package"
|
||||
url="http://www.kde.org"
|
||||
license=('GPL' 'LGPL' 'FDL')
|
||||
|
||||
install=${_origname}.install
|
||||
options=('docs')
|
||||
|
||||
makedepends=('pkgconfig' 'cmake' 'automoc4' "kdebase-runtime>=${_kdever}" "kdelibs>=${_kdever}" "speech-dispatcher>=0.6.7")
|
||||
|
||||
source=($_mirror/${_origname}-$_kdever.tar.bz2)
|
||||
md5sums=('f225cc7bc12f585a64f755764931a23e') # kdeaccessibility-4.4.3.tar.bz2
|
||||
|
||||
|
||||
|
||||
#
|
||||
# build function
|
||||
#
|
||||
build()
|
||||
{
|
||||
cd ${srcdir}/${_origname}-${pkgver}
|
||||
|
||||
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 || return 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
#
|
||||
# split-install functions
|
||||
#
|
||||
package_kdeaccessibility-common()
|
||||
{
|
||||
pkgdesc="KDE Accessibility Aids - Common files"
|
||||
depends=("kdebase-runtime>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-common")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
# 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/kdemod/patches/${_origname} &>/dev/null
|
||||
for i in ${startdir}/*.patch; do
|
||||
msg "$i"
|
||||
cp $i ${pkgdir}/usr/share/kdemod/patches/${_origname}/ &>/dev/null
|
||||
done
|
||||
else
|
||||
warning "no patches found, skipping to include them into the package..."
|
||||
fi
|
||||
}
|
||||
|
||||
package_kdeaccessibility-doc()
|
||||
{
|
||||
pkgdesc="KDE Accessibility Aids - Documentation"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-doc")
|
||||
groups=("${_origname}" "kde-complete" "kde-uninstall" "kde-doc")
|
||||
|
||||
splitdirs="doc"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeaccessibility-colorschemes()
|
||||
{
|
||||
pkgdesc="Accessible Color Schemes for KDE"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-colorschemes")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="ColorSchemes"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeaccessibility-iconthemes()
|
||||
{
|
||||
pkgdesc="Accessibly Icon Themes for KDE"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-iconthemes")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="IconThemes"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeaccessibility-kmag()
|
||||
{
|
||||
pkgdesc="Screen magnifier"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}" "kdelibs>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kmag")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="kmag"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeaccessibility-kmousetool()
|
||||
{
|
||||
pkgdesc="Automatic mouse clicker"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}" "kdelibs>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kmousetool")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="kmousetool"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeaccessibility-kmouth()
|
||||
{
|
||||
pkgdesc="Speech synthesizer"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}" "kdelibs>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kmouth")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="kmouth"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeaccessibility-kttsd()
|
||||
{
|
||||
pkgdesc="Text-to-speech system"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}" "kdelibs>=${_kdever}" "speech-dispatcher>=0.6.7")
|
||||
conflicts=("kdemod-${_origname}-kttsd")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="kttsd"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeaccessibility-ksayit()
|
||||
{
|
||||
pkgdesc="Text-to-speech system frontend"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}" "kdelibs>=${_kdever}" "kdeaccessibility-kttsd")
|
||||
conflicts=("kdemod-${_origname}-ksayit")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="ksayit"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install
|
||||
done
|
||||
}
|
88
kdeaccessibility/kdeaccessibility.install
Normal file
88
kdeaccessibility/kdeaccessibility.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 $*
|
208
kdeadmin/PKGBUILD
Normal file
208
kdeadmin/PKGBUILD
Normal file
@ -0,0 +1,208 @@
|
||||
#
|
||||
# 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=kdeadmin
|
||||
|
||||
|
||||
|
||||
#
|
||||
# package info
|
||||
#
|
||||
pkgbase=('kdeadmin')
|
||||
pkgname=('kdeadmin-common'
|
||||
'kdeadmin-doc'
|
||||
'kdeadmin-kcron'
|
||||
'kdeadmin-kuser'
|
||||
'kdeadmin-ksystemlog'
|
||||
'kdeadmin-system-config-printer')
|
||||
|
||||
# not in the tarball 'kdemod-kdeadmin-lilo-config'
|
||||
|
||||
arch=('i686' 'x86_64')
|
||||
pkgver=${_kdever}
|
||||
pkgrel=1
|
||||
|
||||
pkgdesc="split package"
|
||||
url="http://www.kde.org/"
|
||||
license=('GPL' 'LGPL' 'FDL')
|
||||
|
||||
install=kdeadmin.install
|
||||
|
||||
makedepends=('pkgconfig' 'cmake' 'automoc4' "kdepimlibs>=${_kdever}" "kdebase-runtime>=${_kdever}"
|
||||
"kdebindings-python>=${_kdever}" 'system-config-printer-common' "kdepim-runtime>=${_kdever}")
|
||||
|
||||
source=($_mirror/${_origname}-$_kdever.tar.bz2
|
||||
fix-syslog-path.patch
|
||||
fix-when-accessing-the-KCM.patch)
|
||||
|
||||
md5sums=('e66161a079841bdbce7d5fb5f61f3ee5' # kdeadmin-4.4.3.tar.bz2
|
||||
'41b71823c7a33975ec08aaf75d67a374' # fix-syslog-path.patch
|
||||
'3d79416bd7ac5a04f3ceae5529279c50') # fix-when-accessing-the-KCM.patch
|
||||
|
||||
|
||||
|
||||
|
||||
#
|
||||
# build function
|
||||
#
|
||||
build()
|
||||
{
|
||||
cd ${srcdir}/${_origname}-${pkgver}
|
||||
|
||||
patch -Np1 -i ${srcdir}/fix-syslog-path.patch || return 1
|
||||
|
||||
# fixed in 4.4.2
|
||||
patch -Np3 -i ${srcdir}/fix-when-accessing-the-KCM.patch || return 1
|
||||
|
||||
msg "starting build ..."
|
||||
cmake . -DCMAKE_BUILD_TYPE=${_build_type} \
|
||||
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
||||
-DBUILD_kpackage=OFF \
|
||||
-DBUILD_knetworkconf=OFF \
|
||||
-DCMAKE_SKIP_RPATH=ON \
|
||||
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
|
||||
|
||||
make || return 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
#
|
||||
# split-install functions
|
||||
#
|
||||
package_kdeadmin-common()
|
||||
{
|
||||
pkgdesc="KDE Administrative Tools - Common files and libraries"
|
||||
depends=("kdebase-runtime>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}" )
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="strigi-analyzer"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
|
||||
# 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/kdemod/patches/${_origname} &>/dev/null
|
||||
for i in ${startdir}/*.patch; do
|
||||
msg "$i"
|
||||
cp $i ${pkgdir}/usr/share/kdemod/patches/${_origname}/ &>/dev/null
|
||||
done
|
||||
else
|
||||
warning "no patches found, skipping to include them into the package..."
|
||||
fi
|
||||
}
|
||||
|
||||
package_kdeadmin-doc()
|
||||
{
|
||||
pkgdesc="KDE Administrative Tools - Documentation"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall" "kde-doc")
|
||||
|
||||
splitdirs="doc"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeadmin-kcron()
|
||||
{
|
||||
pkgdesc="Crontab editor"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kcron")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="kcron"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeadmin-kdat()
|
||||
{
|
||||
pkgdesc="Tar-based tape archiver"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kdat")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="kdat"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeadmin-ksystemlog()
|
||||
{
|
||||
pkgdesc="Log viewer"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-ksystemlog")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="ksystemlog"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeadmin-kuser()
|
||||
{
|
||||
pkgdesc="Manage users and groups"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("${_origname}-kuser")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="kuser"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeadmin-lilo-config()
|
||||
{
|
||||
pkgdesc="Configure the LILO bootloader"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-lilo-config")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="lilo-config"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeadmin-system-config-printer()
|
||||
{
|
||||
pkgdesc="Printer configuration"
|
||||
depends=("${_origname}-common>=${_kdever}" "system-config-printer" "kdemod-kdebindings-python")
|
||||
conflicts=("kdemod-${_origname}-system-config-printer-kde")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="system-config-printer-kde"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
|
||||
msg "fixing i18n ..."
|
||||
#fix locations
|
||||
sed -i -e 's~special_choice=_("Automatic rotation")),~special_choice=i18n("Automatic rotation")),~g' ${pkgdir}/usr/share/apps/system-config-printer-kde/system-config-printer-kde.py
|
||||
}
|
11
kdeadmin/fix-syslog-path.patch
Normal file
11
kdeadmin/fix-syslog-path.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- kdeadmin-4.2.2/ksystemlog/src/modes/system/systemConfiguration.h~ 2009-04-22 16:11:44.000000000 +0200
|
||||
+++ kdeadmin-4.2.2/ksystemlog/src/modes/system/systemConfiguration.h 2009-04-22 16:11:56.000000000 +0200
|
||||
@@ -39,7 +39,7 @@
|
||||
SystemConfiguration() :
|
||||
GenericLogModeConfiguration(
|
||||
SYSTEM_LOG_MODE_ID,
|
||||
- QStringList() << "/var/log/syslog",
|
||||
+ QStringList() << "/var/log/messages.log",
|
||||
QList<int>() << INFORMATION_LOG_LEVEL_ID
|
||||
) {
|
||||
|
11
kdeadmin/fix-when-accessing-the-KCM.patch
Normal file
11
kdeadmin/fix-when-accessing-the-KCM.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- trunk/KDE/kdeadmin/system-config-printer-kde/options.py 2010/01/25 07:05:28 1079837
|
||||
+++ trunk/KDE/kdeadmin/system-config-printer-kde/options.py 2010/03/04 20:36:46 1098974
|
||||
@@ -133,7 +133,7 @@
|
||||
self.widget.clear()
|
||||
if type(supported) == list:
|
||||
for each in supported:
|
||||
- self.widget.addItem(self.combobox_dict[each])
|
||||
+ self.widget.addItem(each)
|
||||
else:
|
||||
self.widget.addItem(self.combobox_dict[supported])
|
||||
elif (type(self.widget) == QComboBox and
|
88
kdeadmin/kdeadmin.install
Normal file
88
kdeadmin/kdeadmin.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 $*
|
253
kdeartwork/PKGBUILD
Normal file
253
kdeartwork/PKGBUILD
Normal file
@ -0,0 +1,253 @@
|
||||
#
|
||||
# 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=kdeartwork
|
||||
|
||||
|
||||
|
||||
#
|
||||
# package info
|
||||
#
|
||||
pkgbase=('kdeartwork')
|
||||
pkgname=('kdeartwork-common'
|
||||
'kdeartwork-colorschemes'
|
||||
'kdeartwork-desktopthemes'
|
||||
'kdeartwork-emoticons'
|
||||
'kdeartwork-iconthemes'
|
||||
'kdeartwork-screensavers'
|
||||
'kdeartwork-sounds'
|
||||
'kdeartwork-styles'
|
||||
'kdeartwork-wallpapers'
|
||||
'kdeartwork-weatherwallpapers')
|
||||
|
||||
arch=('i686' 'x86_64')
|
||||
pkgver=${_kdever}
|
||||
pkgrel=1
|
||||
|
||||
pkgdesc="split package"
|
||||
url="http://www.kde.org/"
|
||||
license=('GPL' 'LGPL' 'FDL')
|
||||
|
||||
install=${_origname}.install
|
||||
|
||||
makedepends=('pkgconfig' 'cmake' 'automoc4' 'xscreensaver' 'eigen' "kdebase-workspace>=${_kdever}")
|
||||
|
||||
source=($_mirror/${_origname}-$_kdever.tar.bz2
|
||||
http://www.kde-look.org/CONTENT/content-files/92545-xscreensaver.tar.bz2)
|
||||
|
||||
md5sums=('52f055c299afeca2f076629217f5f6a4' # kdeartwork-4.4.3.tar.bz2
|
||||
'e44e5e6ff9dd2fe66aba7313f7ff1d22') # 92545-xscreensaver.tar.bz2
|
||||
|
||||
|
||||
|
||||
#
|
||||
# build function
|
||||
#
|
||||
build()
|
||||
{
|
||||
cd ${srcdir}/${_origname}-${pkgver}
|
||||
|
||||
# branch update
|
||||
if [ "$_branchupdate" = "yes" ] ; then
|
||||
msg "applying branch update ..."
|
||||
patch -p0 -i $startdir/branch-update-r*.patch || return 1
|
||||
else
|
||||
warning "branch updates disabled ..."
|
||||
warning "if you want to make use of it, run branch_updater.sh"
|
||||
warning "and enable branch updates in _/buildsystem/kdemod.conf"
|
||||
fi
|
||||
|
||||
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 || return 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
#
|
||||
# split-install functions
|
||||
#
|
||||
package_kdeartwork-common()
|
||||
{
|
||||
pkgdesc="KDE Artwork - Common files and libraries"
|
||||
depends=("kdebase-workspace>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
# 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/kdemod/patches/${_origname} &>/dev/null
|
||||
for i in ${startdir}/*.patch; do
|
||||
msg "$i"
|
||||
cp $i ${pkgdir}/usr/share/kdemod/patches/${_origname}/ &>/dev/null
|
||||
done
|
||||
else
|
||||
warning "no patches found, skipping to include them into the package..."
|
||||
fi
|
||||
}
|
||||
|
||||
package_kdeartwork-colorschemes()
|
||||
{
|
||||
pkgdesc="KDE Artwork - Color Schemes"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kcron")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="ColorSchemes"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeartwork-desktopthemes()
|
||||
{
|
||||
pkgdesc="KDE Artwork - Additional Desktop Themes"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-desktopthemes")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="desktopthemes"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
|
||||
# use transparent panel svg's everywhere
|
||||
for n in Aya Clean-Blend Elegance heron Silicon slim-glow; do
|
||||
cp -fv ${pkgdir}/usr/share/apps/desktoptheme/$n/widgets/panel-background.svgz ${pkgdir}/usr/share/apps/desktoptheme/$n/opaque/widgets/panel-background.svgz
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeartwork-emoticons()
|
||||
{
|
||||
pkgdesc="KDE Artwork - Additional Emoticons"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-emoticons")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="emoticons"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeartwork-iconthemes()
|
||||
{
|
||||
pkgdesc="KDE Artwork - Additional Icon Themes"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-iconthemes")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="IconThemes"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeartwork-screensavers()
|
||||
{
|
||||
pkgdesc="KDE Artwork - Screen Savers"
|
||||
depends=("${_origname}-common>=${_kdever}" 'eigen>=2.0')
|
||||
conflicts=("kdemod-${_origname}-kscreensaver")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
optdepends=('xscreensaver: More screensavers')
|
||||
|
||||
splitdirs="kscreensaver"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
|
||||
pushd $srcdir/xscreensaver
|
||||
mkdir -p ${pkgdir}/usr/share/kde4/services/ScreenSavers
|
||||
cp -f *.desktop ${pkgdir}/usr/share/kde4/services/ScreenSavers
|
||||
popd
|
||||
}
|
||||
|
||||
package_kdeartwork-kwinstyles()
|
||||
{
|
||||
pkgdesc="KDE Artwork - Window Decoration Styles for KWin"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kwin-styles")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="kwin-styles"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeartwork-sounds()
|
||||
{
|
||||
pkgdesc="KDE Artwork - Sounds"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-sounds")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="sounds"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeartwork-styles()
|
||||
{
|
||||
pkgdesc="KDE Artwork - Additional Widget Styles"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-styles")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="styles"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeartwork-wallpapers()
|
||||
{
|
||||
pkgdesc="KDE Artwork - Additional Wallpapers"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-wallpapers")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="wallpapers"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeartwork-weatherwallpapers()
|
||||
{
|
||||
pkgdesc="KDE Artwork - Additional Wallpapers for the Plasma weather plugin"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-weatherwallpapers")
|
||||
groups=("kde-${_origname}" "kde-complete" "kde-uninstall")
|
||||
|
||||
splitdirs="WeatherWallpapers"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
88
kdeartwork/kdeartwork.install
Normal file
88
kdeartwork/kdeartwork.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 $*
|
712
kdegames/PKGBUILD
Normal file
712
kdegames/PKGBUILD
Normal file
@ -0,0 +1,712 @@
|
||||
#
|
||||
# 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=kdegames
|
||||
|
||||
|
||||
|
||||
#
|
||||
# package info
|
||||
#
|
||||
pkgbase=('kdegames')
|
||||
pkgname=('kdegames-common'
|
||||
'kdegames-doc'
|
||||
'kdegames-bomber'
|
||||
'kdegames-bovo'
|
||||
'kdegames-granatier'
|
||||
'kdegames-kapman'
|
||||
'kdegames-katomic'
|
||||
'kdegames-kbattleship'
|
||||
'kdegames-kblackbox'
|
||||
'kdegames-kblocks'
|
||||
'kdegames-kbounce'
|
||||
'kdegames-kbreakout'
|
||||
'kdegames-kdiamond'
|
||||
'kdegames-kfourinline'
|
||||
'kdegames-kgoldrunner'
|
||||
'kdegames-kigo'
|
||||
'kdegames-killbots'
|
||||
'kdegames-kiriki'
|
||||
'kdegames-kjumpingcube'
|
||||
'kdegames-klines'
|
||||
'kdegames-kmahjongg'
|
||||
'kdegames-kmines'
|
||||
'kdegames-knetwalk'
|
||||
'kdegames-kolf'
|
||||
'kdegames-kollision'
|
||||
'kdegames-konquest'
|
||||
'kdegames-kpat'
|
||||
'kdegames-kreversi'
|
||||
'kdegames-ksame'
|
||||
'kdegames-kshisen'
|
||||
'kdegames-ksirk'
|
||||
'kdegames-kspaceduel'
|
||||
'kdegames-ksquares'
|
||||
'kdegames-ksudoku'
|
||||
'kdegames-ktron'
|
||||
'kdegames-ktuberling'
|
||||
'kdegames-kubrick'
|
||||
'kdegames-lskat'
|
||||
'kdegames-palapeli')
|
||||
|
||||
|
||||
arch=('i686' 'x86_64')
|
||||
pkgver=${_kdever}
|
||||
pkgrel=1
|
||||
|
||||
pkgdesc="split package"
|
||||
url="http://www.kde.org"
|
||||
license=('GPL' 'LGPL' 'FDL')
|
||||
|
||||
options=('docs' '!splithdr')
|
||||
|
||||
makedepends=('pkgconfig' 'cmake' 'automoc4' "kdelibs>=${_kdever}" "kdebase-runtime>=${_kdever}" 'qca' 'ggz-client-libs' 'gnugo')
|
||||
|
||||
source=("$_mirror/${_origname}-$_kdever.tar.bz2")
|
||||
md5sums=('72b5b0ed4ee317c2301010c447a9a366') # kdegames-4.4.3.tar.bz2
|
||||
|
||||
|
||||
|
||||
#
|
||||
# build function
|
||||
#
|
||||
build()
|
||||
{
|
||||
cd ${srcdir}/${_origname}-${pkgver}
|
||||
|
||||
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 || return 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
#
|
||||
# split-install functions
|
||||
#
|
||||
package_kdegames-common()
|
||||
{
|
||||
pkgdesc="KDE games - Common files and libraries"
|
||||
depends=("kdelibs>=${_kdever}")
|
||||
replaces=('kdegames-common-devel')
|
||||
conflicts=("kdemod-${_origname}-common")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="libkdegames libkmahjongg"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
|
||||
# WORKAROUND, install cmake modules
|
||||
for i in $srcdir/${_origname}-${pkgver}/cmake/modules/*.cmake; do
|
||||
install -D -m644 $i $pkgdir/usr/share/apps/cmake/modules/$(basename $i)
|
||||
done
|
||||
|
||||
# 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/kdemod/patches/${_origname} &>/dev/null
|
||||
for i in ${startdir}/*.patch; do
|
||||
msg "$i"
|
||||
cp $i ${pkgdir}/usr/share/kdemod/patches/${_origname}/ &>/dev/null
|
||||
done
|
||||
else
|
||||
warning "no patches found, skipping to include them into the package..."
|
||||
fi
|
||||
}
|
||||
|
||||
package_kdegames-doc()
|
||||
{
|
||||
pkgdesc="KDE games - Documentation"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-doc")
|
||||
groups=("kde-complete" "${_origname}" "kde-doc" "kde-uninstall")
|
||||
|
||||
splitdirs="doc"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-bomber()
|
||||
{
|
||||
pkgdesc="Destroy the buildings below, before you crash into them"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-bomber")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="bomber"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-bovo()
|
||||
{
|
||||
pkgdesc="Client for playing Monopoly-like games on the monopd network"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-bovo")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="bovo"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-granatier()
|
||||
{
|
||||
pkgdesc="Granatier is a clone of the classic Bomberman game, inspired by the work of the Clanbomber clone."
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-granatier")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="granatier"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-kapman()
|
||||
{
|
||||
pkgdesc="A clone of the classic Pacman game"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kapman")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kapman"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-katomic()
|
||||
{
|
||||
pkgdesc="Thinking game where you have to form chemical molecules out of atoms"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-katomic")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="katomic"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-kbattleship()
|
||||
{
|
||||
pkgdesc="Implentation of the popular game Battleship where you have to try to sink the opponents ships"
|
||||
depends=("${_origname}-common>=${_kdever}" 'ggz-client-libs')
|
||||
conflicts=("kdemod-${_origname}-kbattleship")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}-kbattleship.install
|
||||
|
||||
splitdirs="kbattleship"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
|
||||
# will be generated during install
|
||||
rm -rf ${pkgdir}/etc
|
||||
install -D -m644 ${srcdir}/${_origname}-${pkgver}/kbattleship/src/module.dsc ${pkgdir}/usr/share/ggz/kbattleship.dsc
|
||||
}
|
||||
|
||||
package_kdegames-kblackbox()
|
||||
{
|
||||
pkgdesc="Graphical logical game, inspired by emacs blackbox"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kblackbox")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kblackbox"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-kblocks()
|
||||
{
|
||||
pkgdesc="KBlocks is a single player falling blocks puzzle game, a Tetris-like replacement for KSirtet"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kblocks")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kblocks"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-kbounce()
|
||||
{
|
||||
pkgdesc="Catch several moving balls in a rectangular game field by building walls"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kbounce")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kbounce"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-kbreakout()
|
||||
{
|
||||
pkgdesc="A clone of the classic breakout game"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kbreakout")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kbreakout"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-kdiamond()
|
||||
{
|
||||
pkgdesc="KDiamond is a three-in-a-row game (much like Bejeweled)"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kdiamond")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kdiamond"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-kfourinline()
|
||||
{
|
||||
pkgdesc="A board game for two players based on the Connect-Four game"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kfourinline")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kfourinline"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-kgoldrunner()
|
||||
{
|
||||
pkgdesc="Action game, akin to the C64s LodeRunner"
|
||||
depends=("${_origname}-common>=${_kdever}" "${_origname}-doc>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kgoldrunner")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kgoldrunner"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-kigo()
|
||||
{
|
||||
pkgdesc="A go board game for KDE"
|
||||
depends=("${_origname}-common>=${_kdever}" 'gnugo')
|
||||
conflicts=("kdemod-${_origname}-kigo")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kigo"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-killbots()
|
||||
{
|
||||
pkgdesc="A classic turn-based game in which the player tries to avoid being killed by attacking robots"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-killbots")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="killbots"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-kiriki()
|
||||
{
|
||||
pkgdesc="Kiriki is a clone of Yahtzee"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kiriki")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kiriki"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-kjumpingcube()
|
||||
{
|
||||
pkgdesc="Tactical one or two-player game. The playing field consists of squares that contains points which can be increased"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kjumpingcube")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kjumpingcube"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-klines()
|
||||
{
|
||||
pkgdesc="A version of the russian game Lines"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-klines")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="klines"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-kmahjongg()
|
||||
{
|
||||
pkgdesc="Clone of the well known tile based patience game of the same name"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kmahjongg")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kmahjongg"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-kmines()
|
||||
{
|
||||
pkgdesc="Classical Minesweeper game where you have to find mines by logical deduction"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kmines")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kmines"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-knetwalk()
|
||||
{
|
||||
pkgdesc="Connect all computers to a messed up network"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-knetwalk")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="knetwalk"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-kolf()
|
||||
{
|
||||
pkgdesc="Miniature golf simulator"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kolf")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kolf"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-kollision()
|
||||
{
|
||||
pkgdesc="A simple ball dodging game"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kollision")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kollision"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-konquest()
|
||||
{
|
||||
pkgdesc="Version of Gnu-Lactic Konquest, a multi-player strategy game"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-konquest")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="konquest"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-kpat()
|
||||
{
|
||||
pkgdesc="Collection of various patience games known all over the world"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kpat")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kpat"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-kreversi()
|
||||
{
|
||||
pkgdesc="Board game game where two players have to gain the majority of pieces on the board"
|
||||
depends=("${_origname}-common>=${_kdever}" 'ggz-client-libs')
|
||||
conflicts=("kdemod-${_origname}-kreversi")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}-kreversi.install
|
||||
|
||||
splitdirs="kreversi"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
|
||||
# will be generated during install
|
||||
rm -rf ${pkgdir}/etc
|
||||
install -D -m644 ${srcdir}/${_origname}-${pkgver}/kreversi/module.dsc ${pkgdir}/usr/share/ggz/kreversi.dsc
|
||||
}
|
||||
|
||||
package_kdegames-ksame()
|
||||
{
|
||||
pkgdesc="SameGame clone, which is only really famous on the Macintosh"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-ksame")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="ksame"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-kshisen()
|
||||
{
|
||||
pkgdesc="A game similiar to Mahjongg"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kshisen")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kshisen"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-ksirk()
|
||||
{
|
||||
pkgdesc="A game similiar to Risk"
|
||||
depends=("${_origname}-common>=${_kdever}" 'qca')
|
||||
conflicts=("kdemod-${_origname}-ksirk")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="ksirk"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-kspaceduel()
|
||||
{
|
||||
pkgdesc="Space arcade game for two players"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kspaceduel")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kspaceduel"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-ksquares()
|
||||
{
|
||||
pkgdesc="A game modeled after the well known pen and paper based game of Dots and Boxes"
|
||||
depends=("${_origname}-common>=${_kdever}" 'ggz-client-libs')
|
||||
conflicts=("kdemod-${_origname}-ksquares")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}-ksquares.install
|
||||
|
||||
splitdirs="ksquares"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
|
||||
# will be generated during install
|
||||
rm -rf ${pkgdir}/etc
|
||||
install -D -m644 ${srcdir}/${_origname}-${pkgver}/ksquares/src/module.dsc ${pkgdir}/usr/share/ggz/ksquares.dsc
|
||||
}
|
||||
|
||||
package_kdegames-ksudoku()
|
||||
{
|
||||
pkgdesc="Sudoku game"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-ksudoku")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="ksudoku"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-ktron()
|
||||
{
|
||||
pkgdesc="Well known from the famous movie, KTron is a popular computer game for two players."
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-ktron")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="ktron"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-ktuberling()
|
||||
{
|
||||
pkgdesc="Nice potato editor for kids"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-ktuberling")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="ktuberling"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-kubrick()
|
||||
{
|
||||
pkgdesc="Kubrick is a game based on Rubik's Cube (TM)"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kubrick")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kubrick"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-lskat()
|
||||
{
|
||||
pkgdesc="Two player card game which follows the rules for the German game Offiziers-Skat"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-lskat")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="lskat"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdegames-palapeli()
|
||||
{
|
||||
pkgdesc="Palapeli is a jigsaw puzzle game."
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-palapeli")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
|
||||
splitdirs="palapeli"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
97
kdegames/kdegames-kbattleship.install
Normal file
97
kdegames/kdegames-kbattleship.install
Normal file
@ -0,0 +1,97 @@
|
||||
pre_remove() {
|
||||
if [ -f usr/share/ggz/kreversi.dsc ]; then
|
||||
ggz-config -r -m usr/share/ggz/kbattleship.dsc >& /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
pre_upgrade() {
|
||||
pre_remove $1
|
||||
}
|
||||
|
||||
post_install() {
|
||||
ggz-config -i -f -m usr/share/ggz/kbattleship.dsc >& /dev/null
|
||||
|
||||
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() {
|
||||
ggz-config -i -f -m usr/share/ggz/kbattleship.dsc >& /dev/null
|
||||
|
||||
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
|
||||
}
|
97
kdegames/kdegames-kreversi.install
Normal file
97
kdegames/kdegames-kreversi.install
Normal file
@ -0,0 +1,97 @@
|
||||
pre_remove() {
|
||||
if [ -f usr/share/ggz/kreversi.dsc ]; then
|
||||
ggz-config -r -m usr/share/ggz/kreversi.dsc >& /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
pre_upgrade() {
|
||||
pre_remove $1
|
||||
}
|
||||
|
||||
post_install() {
|
||||
ggz-config -i -f -m usr/share/ggz/kreversi.dsc >& /dev/null
|
||||
|
||||
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() {
|
||||
ggz-config -i -f -m usr/share/ggz/kbattleship.dsc >& /dev/null
|
||||
|
||||
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
|
||||
}
|
97
kdegames/kdegames-ksquares.install
Normal file
97
kdegames/kdegames-ksquares.install
Normal file
@ -0,0 +1,97 @@
|
||||
pre_remove() {
|
||||
if [ -f usr/share/ggz/kreversi.dsc ]; then
|
||||
ggz-config -r -m usr/share/ggz/ksquares.dsc >& /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
pre_upgrade() {
|
||||
pre_remove $1
|
||||
}
|
||||
|
||||
post_install() {
|
||||
ggz-config -i -f -m usr/share/ggz/ksquares.dsc >& /dev/null
|
||||
|
||||
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() {
|
||||
ggz-config -i -f -m usr/share/ggz/kbattleship.dsc >& /dev/null
|
||||
|
||||
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
|
||||
}
|
88
kdegames/kdegames.install
Normal file
88
kdegames/kdegames.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 $*
|
213
kdenetwork/CVE-2010-1000.patch
Normal file
213
kdenetwork/CVE-2010-1000.patch
Normal file
@ -0,0 +1,213 @@
|
||||
diff --git a/kget/transfer-plugins/metalink/metalink.cpp b/kget/transfer-plugins/metalink/metalink.cpp
|
||||
index 605d4e1..c7d5d75 100644
|
||||
--- a/kget/transfer-plugins/metalink/metalink.cpp
|
||||
+++ b/kget/transfer-plugins/metalink/metalink.cpp
|
||||
@@ -99,6 +99,7 @@ void Metalink::start()
|
||||
void Metalink::metalinkInit(const KUrl &src, const QByteArray &data)
|
||||
{
|
||||
kDebug(5001);
|
||||
+
|
||||
bool justDownloaded = !m_localMetalinkLocation.isValid();
|
||||
if (!src.isEmpty())
|
||||
{
|
||||
@@ -121,7 +122,9 @@ void Metalink::metalinkInit(const KUrl &src, const QByteArray &data)
|
||||
//error
|
||||
if (!m_metalink.isValid())
|
||||
{
|
||||
- kDebug(5001) << "Unknown error when trying to load the .metalink-file";
|
||||
+ kError(5001) << "Unknown error when trying to load the .metalink-file. Metalink is not valid.";
|
||||
+ setStatus(Job::Aborted);
|
||||
+ setTransferChange(Tc_Status, true);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -202,7 +205,7 @@ void Metalink::metalinkInit(const KUrl &src, const QByteArray &data)
|
||||
if (!m_dataSourceFactory.size())
|
||||
{
|
||||
KMessageBox::error(0, i18n("Download failed, no working URLs were found."), i18n("Error"));
|
||||
- setStatus(Job::Aborted, i18n("An error occurred...."), SmallIcon("document-preview"));
|
||||
+ setStatus(Job::Aborted);
|
||||
setTransferChange(Tc_Status, true);
|
||||
return;
|
||||
}
|
||||
@@ -227,16 +230,29 @@ void Metalink::metalinkInit(const KUrl &src, const QByteArray &data)
|
||||
ui.treeView->hideColumn(FileItem::SignatureVerified);
|
||||
dialog->setMainWidget(widget);
|
||||
dialog->setCaption(i18n("File Selection"));
|
||||
- dialog->setButtons(KDialog::Ok);
|
||||
- connect(dialog, SIGNAL(finished()), this, SLOT(filesSelected()));
|
||||
+ dialog->setButtons(KDialog::Ok | KDialog::Cancel);
|
||||
+ connect(dialog, SIGNAL(finished(int)), this, SLOT(fileDlgFinished(int)));
|
||||
|
||||
dialog->show();
|
||||
}
|
||||
}
|
||||
|
||||
-void Metalink::filesSelected()
|
||||
+void Metalink::fileDlgFinished(int result)
|
||||
{
|
||||
+ //BEGIN HACK if the dialog was not accepted untick every file, so that the download does not start
|
||||
+ //generally setStatus should do the job as well, but does not as it appears
|
||||
+ if (result != QDialog::Accepted) {
|
||||
+ for (int row = 0; row < fileModel()->rowCount(); ++row) {
|
||||
+ QModelIndex index = fileModel()->index(row, FileItem::File);
|
||||
+ if (index.isValid()) {
|
||||
+ fileModel()->setData(index, Qt::Unchecked, Qt::CheckStateRole);
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ //END
|
||||
+
|
||||
QModelIndexList files = fileModel()->fileIndexes(FileItem::File);
|
||||
+ int numFilesSelected = 0;
|
||||
foreach (const QModelIndex &index, files)
|
||||
{
|
||||
const KUrl dest = fileModel()->getUrl(index);
|
||||
@@ -244,6 +260,9 @@ void Metalink::filesSelected()
|
||||
if (m_dataSourceFactory.contains(dest))
|
||||
{
|
||||
m_dataSourceFactory[dest]->setDoDownload(doDownload);
|
||||
+ if (doDownload) {
|
||||
+ ++numFilesSelected;
|
||||
+ }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -252,9 +271,15 @@ void Metalink::filesSelected()
|
||||
processedSizeChanged();
|
||||
speedChanged();
|
||||
|
||||
+ //no files selected to download or dialog rejected, stop the download
|
||||
+ if (!numFilesSelected || (result != QDialog::Accepted)) {
|
||||
+ setStatus(Job::Stopped);//FIXME
|
||||
+ setTransferChange(Tc_Status, true);
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
//some files may be set to download, so start them as long as the transfer is not stopped
|
||||
- if (status() != Job::Stopped)
|
||||
- {
|
||||
+ if (status() != Job::Stopped) {
|
||||
startMetalink();
|
||||
}
|
||||
}
|
||||
diff --git a/kget/transfer-plugins/metalink/metalink.h b/kget/transfer-plugins/metalink/metalink.h
|
||||
index 41988cb..15e8698 100644
|
||||
--- a/kget/transfer-plugins/metalink/metalink.h
|
||||
+++ b/kget/transfer-plugins/metalink/metalink.h
|
||||
@@ -81,7 +81,7 @@ class Metalink : public Transfer
|
||||
|
||||
private Q_SLOTS:
|
||||
void metalinkInit(const KUrl &url = KUrl(), const QByteArray &data = QByteArray());
|
||||
- void filesSelected();
|
||||
+ void fileDlgFinished(int result);
|
||||
void totalSizeChanged(KIO::filesize_t size);
|
||||
void processedSizeChanged();
|
||||
void speedChanged();
|
||||
diff --git a/kget/ui/metalinkcreator/metalinker.cpp b/kget/ui/metalinkcreator/metalinker.cpp
|
||||
index 9487c6f..019b571 100644
|
||||
--- a/kget/ui/metalinkcreator/metalinker.cpp
|
||||
+++ b/kget/ui/metalinkcreator/metalinker.cpp
|
||||
@@ -528,14 +528,14 @@ void KGetMetalink::Verification::clear()
|
||||
|
||||
bool KGetMetalink::File::isValid() const
|
||||
{
|
||||
- return !name.isEmpty() && resources.isValid();
|
||||
+ return isValidNameAttribute() && resources.isValid();
|
||||
}
|
||||
|
||||
void KGetMetalink::File::load(const QDomElement &e)
|
||||
{
|
||||
data.load(e);
|
||||
|
||||
- name = e.attribute("name");
|
||||
+ name = QUrl::fromPercentEncoding(e.attribute("name").toAscii());
|
||||
size = e.firstChildElement("size").text().toULongLong();
|
||||
|
||||
verification.load(e);
|
||||
@@ -575,6 +575,22 @@ void KGetMetalink::File::clear()
|
||||
resources.clear();
|
||||
}
|
||||
|
||||
+
|
||||
+bool KGetMetalink::File::isValidNameAttribute() const
|
||||
+{
|
||||
+ if (name.isEmpty()) {
|
||||
+ kError(5001) << "Name attribute of Metalink::File is empty.";
|
||||
+ return false;
|
||||
+ }
|
||||
+
|
||||
+ if (name.contains(QRegExp("$(\\.\\.?)?/")) || name.contains("/../") || name.endsWith("/..")) {
|
||||
+ kError(5001) << "Name attribute of Metalink::File contains directory traversal directives:" << name;
|
||||
+ return false;
|
||||
+ }
|
||||
+
|
||||
+ return true;
|
||||
+}
|
||||
+
|
||||
#ifdef HAVE_NEPOMUK
|
||||
QHash<QUrl, Nepomuk::Variant> KGetMetalink::File::properties() const
|
||||
{
|
||||
@@ -584,13 +600,28 @@ QHash<QUrl, Nepomuk::Variant> KGetMetalink::File::properties() const
|
||||
|
||||
bool KGetMetalink::Files::isValid() const
|
||||
{
|
||||
- bool isValid = !files.empty();
|
||||
- foreach (const File &file, files)
|
||||
- {
|
||||
- isValid &= file.isValid();
|
||||
+ if (files.isEmpty()) {
|
||||
+ return false;
|
||||
}
|
||||
|
||||
- return isValid;
|
||||
+ QStringList fileNames;
|
||||
+ foreach (const File &file, files) {
|
||||
+ fileNames << file.name;
|
||||
+ if (!file.isValid()) {
|
||||
+ return false;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ //The value of name must be unique for each file
|
||||
+ while (!fileNames.isEmpty()) {
|
||||
+ const QString fileName = fileNames.takeFirst();
|
||||
+ if (fileNames.contains(fileName)) {
|
||||
+ kError(5001) << "Metalink::File name" << fileName << "exists multiple times.";
|
||||
+ return false;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ return true;
|
||||
}
|
||||
|
||||
void KGetMetalink::Files::load(const QDomElement &e)
|
||||
@@ -751,7 +782,7 @@ void KGetMetalink::Metalink_v3::parseFiles(const QDomElement &e)
|
||||
|
||||
for (QDomElement elem = filesElem.firstChildElement("file"); !elem.isNull(); elem = elem.nextSiblingElement("file")) {
|
||||
File file;
|
||||
- file.name = elem.attribute("name");
|
||||
+ file.name = QUrl::fromPercentEncoding(elem.attribute("name").toAscii());
|
||||
file.size = elem.firstChildElement("size").text().toULongLong();
|
||||
|
||||
file.data = parseCommonData(elem);
|
||||
diff --git a/kget/ui/metalinkcreator/metalinker.h b/kget/ui/metalinkcreator/metalinker.h
|
||||
index 36b5b82..867d1a7 100644
|
||||
--- a/kget/ui/metalinkcreator/metalinker.h
|
||||
+++ b/kget/ui/metalinkcreator/metalinker.h
|
||||
@@ -259,6 +259,14 @@ class File
|
||||
KIO::filesize_t size;
|
||||
CommonData data;
|
||||
Resources resources;
|
||||
+
|
||||
+ private:
|
||||
+ /**
|
||||
+ * Controlls if the name attribute is valid, i.e. it is not empty and
|
||||
+ * does not contain any directory traversal directives or information,
|
||||
+ * as described in the Metalink 4.0 specification 4.1.2.1.
|
||||
+ */
|
||||
+ bool isValidNameAttribute() const;
|
||||
};
|
||||
|
||||
class Files
|
||||
|
212
kdenetwork/PKGBUILD
Normal file
212
kdenetwork/PKGBUILD
Normal file
@ -0,0 +1,212 @@
|
||||
#
|
||||
# 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=kdenetwork
|
||||
|
||||
|
||||
|
||||
#
|
||||
# package info
|
||||
#
|
||||
pkgbase=('kdenetwork')
|
||||
pkgname=('kdenetwork-common'
|
||||
'kdenetwork-doc'
|
||||
'kdenetwork-kget'
|
||||
'kdenetwork-kopete'
|
||||
'kdenetwork-kppp'
|
||||
'kdenetwork-krdc'
|
||||
'kdenetwork-krfb')
|
||||
|
||||
arch=('i686' 'x86_64')
|
||||
pkgver=${_kdever}
|
||||
pkgrel=1
|
||||
|
||||
pkgdesc="split package"
|
||||
url="http://www.kde.org"
|
||||
license=('GPL' 'LGPL' 'FDL')
|
||||
|
||||
options=('docs' '!splithdr')
|
||||
|
||||
makedepends=('pkgconfig' 'cmake' 'automoc4' 'boost' 'speex' 'ortp' 'libotr'
|
||||
'qca-ossl' "kdebase-workspace>=${_kdever}"
|
||||
"kdebase>=${_kdever}" 'libvncserver' 'libmsn'
|
||||
'ppp' 'libv4l' 'libidn' 'rdesktop' 'qimageblitz' 'libxss' 'libxdamage'
|
||||
'libgadu' 'telepathy-qt4')
|
||||
|
||||
source=($_mirror/${_origname}-$_kdever.tar.bz2 \
|
||||
'lisa.daemon'
|
||||
"CVE-2010-1000.patch"
|
||||
"gcc45.patch")
|
||||
|
||||
md5sums=('9e8e285aff018807fd5967806cebf083' # kdenetwork-4.4.3.tar.bz2
|
||||
'66069c83fd5fa0df5d743d4486799033' # lisa.daemon
|
||||
'897ed3be9919e32f70abf1e85dfd3661' # CVE-2010-1000.patch
|
||||
'8d509b4a541704606f9688bcd4e38a61') # gcc45.patch
|
||||
|
||||
|
||||
|
||||
|
||||
#
|
||||
# build function
|
||||
#
|
||||
build()
|
||||
{
|
||||
# fix build
|
||||
#export CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe -D__STDC_CONSTANT_MACROS"
|
||||
|
||||
cd ${srcdir}/${_origname}-${pkgver}
|
||||
|
||||
msg "applying patches ..."
|
||||
patch -Np1 -i $startdir/CVE-2010-1000.patch || return 1
|
||||
patch -Np1 -i $startdir/gcc45.patch || return 1
|
||||
|
||||
msg "starting build ..."
|
||||
cmake . -DCMAKE_BUILD_TYPE=${_build_type} \
|
||||
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
||||
-DWITH_Xmms=OFF \
|
||||
-DWITH_Decibel=OFF \
|
||||
-DCMAKE_SKIP_RPATH=ON \
|
||||
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
|
||||
|
||||
make || return 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
#
|
||||
# split-install functions
|
||||
#
|
||||
package_kdenetwork-common()
|
||||
{
|
||||
pkgdesc="KDE Network - Common files and libraries"
|
||||
depends=("kdelibs>=${_kdever}" 'smbclient')
|
||||
conflicts=("kdemod-${_origname}-common")
|
||||
groups=("kde" "complete" "${_origname}" "uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="filesharing kdnssd strigi-analyzer"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install
|
||||
|
||||
done
|
||||
|
||||
# install lisa network daemon
|
||||
install -D -m 755 ${srcdir}/lisa.daemon ${pkgdir}/etc/rc.d/kde-lisa
|
||||
|
||||
# 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/kdemod/patches/${_origname} &>/dev/null
|
||||
for i in ${startdir}/*.patch; do
|
||||
msg "$i"
|
||||
cp $i ${pkgdir}/usr/share/kdemod/patches/${_origname}/ &>/dev/null
|
||||
done
|
||||
else
|
||||
warning "no patches found, skipping to include them into the package..."
|
||||
fi
|
||||
}
|
||||
|
||||
package_kdenetwork-doc()
|
||||
{
|
||||
pkgdesc="KDE Network - Documentation"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
groups=("kde-complete" "${_origname}" "kde-doc" "kde-uninstall")
|
||||
|
||||
splitdirs="doc"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdenetwork-kget()
|
||||
{
|
||||
pkgdesc="Download manager"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-workspace>=${_kdever}" 'qca')
|
||||
conflicts=("kdemod-${_origname}-kget")
|
||||
groups=("kde" "kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kget"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdenetwork-kopete()
|
||||
{
|
||||
pkgdesc="Kopete, the instant messenger"
|
||||
depends=("kdebase-runtime>=${_kdever}" "kdepimlibs>=${_kdever}"
|
||||
'qca-ossl' 'libotr' 'libmsn' 'libidn' 'qimageblitz' 'libxss' 'libv4l' 'libgadu')
|
||||
conflicts=("kdemod-${_origname}-kopete")
|
||||
groups=("kde" "kde-complete" "${_origname}" "kde-uninstall")
|
||||
replaces=('kdenetwork-kopete-devel')
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kopete"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdenetwork-kppp()
|
||||
{
|
||||
pkgdesc="PPP Client"
|
||||
depends=("${_origname}-common>=${_kdever}" 'ppp')
|
||||
conflicts=("kdemod-${_origname}-kppp")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kppp"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdenetwork-krdc()
|
||||
{
|
||||
pkgdesc="Desktop Sharing Client"
|
||||
depends=("${_origname}-common>=${_kdever}" 'libvncserver' 'rdesktop' 'telepathy-qt4')
|
||||
conflicts=("kdemod-${_origname}-krdc")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
replaces=('kdenetwork-krdc-devel')
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="krdc"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdenetwork-krfb()
|
||||
{
|
||||
pkgdesc="Desktop Sharing Server"
|
||||
# note on libxdamage:
|
||||
# not detected by namcap because libgl depends on it
|
||||
# but nvidia providing libgl does not depend on libxdamage
|
||||
depends=("kdebase-runtime>=${_kdever}" "kdelibs>=${_kdever}" 'libvncserver' 'libxdamage')
|
||||
conflicts=("kdemod-${_origname}-krfb")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="krfb"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
11
kdenetwork/gcc45.patch
Normal file
11
kdenetwork/gcc45.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- kdenetwork-4.4.3/kopete/protocols/jabber/googletalk/libjingle/talk/base/openssladapter.cc.orig 2010-05-22 20:00:39.741750290 +0200
|
||||
+++ kdenetwork-4.4.3/kopete/protocols/jabber/googletalk/libjingle/talk/base/openssladapter.cc 2010-05-22 20:02:33.485071903 +0200
|
||||
@@ -648,7 +648,7 @@ OpenSSLAdapter::SSLPostConnectionCheck(S
|
||||
int extension_nid = OBJ_obj2nid(X509_EXTENSION_get_object(extension));
|
||||
|
||||
if (extension_nid == NID_subject_alt_name) {
|
||||
- X509V3_EXT_METHOD* meth = X509V3_EXT_get(extension);
|
||||
+ X509V3_EXT_METHOD* meth = (X509V3_EXT_METHOD *) X509V3_EXT_get(extension);
|
||||
if (!meth)
|
||||
break;
|
||||
|
88
kdenetwork/kdenetwork.install
Normal file
88
kdenetwork/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 $*
|
35
kdenetwork/lisa.daemon
Normal file
35
kdenetwork/lisa.daemon
Normal file
@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
|
||||
. /etc/rc.conf
|
||||
. /etc/rc.d/functions
|
||||
|
||||
case "$1" in
|
||||
|
||||
start)
|
||||
stat_busy "Starting LISa"
|
||||
/usr/bin/lisa &>/dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
stat_fail
|
||||
else
|
||||
add_daemon lisa
|
||||
stat_done
|
||||
fi
|
||||
;;
|
||||
|
||||
stop)
|
||||
stat_busy "Stopping LISa"
|
||||
kill -9 `pidof /usr/bin/lisa` &>/dev/null
|
||||
rm_daemon lisa
|
||||
stat_done
|
||||
;;
|
||||
|
||||
restart)
|
||||
stat_busy "Restarting LISa ..."
|
||||
$0 stop
|
||||
$0 start
|
||||
stat_done
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "usage: $0 {start|stop|restart}"
|
||||
esac
|
370
kdepim/PKGBUILD
Normal file
370
kdepim/PKGBUILD
Normal file
@ -0,0 +1,370 @@
|
||||
#
|
||||
# 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=kdepim
|
||||
|
||||
|
||||
|
||||
#
|
||||
# package info
|
||||
#
|
||||
pkgbase=('kdepim')
|
||||
pkgname=('kdepim-common'
|
||||
'kdepim-doc'
|
||||
'kdepim-akonadiconsole'
|
||||
'kdepim-akregator'
|
||||
'kdepim-blogilo'
|
||||
'kdepim-kaddressbook'
|
||||
'kdepim-kalarm'
|
||||
'kdepim-kjots'
|
||||
'kdepim-kmail'
|
||||
'kdepim-knode'
|
||||
'kdepim-knotes'
|
||||
'kdepim-kontact'
|
||||
'kdepim-korganizer'
|
||||
'kdepim-ktimetracker'
|
||||
'kdepim-wizards')
|
||||
|
||||
# disabled for now because of outdated/unfinished opensync:
|
||||
# kitchensync kmobiletools
|
||||
|
||||
|
||||
arch=('i686' 'x86_64')
|
||||
pkgver=${_kdever}
|
||||
pkgrel=1
|
||||
|
||||
pkgdesc="split package"
|
||||
url="http://www.kde.org"
|
||||
license=('GPL' 'LGPL' 'FDL')
|
||||
|
||||
options=('docs' '!splithdr')
|
||||
|
||||
makedepends=('pkgconfig' 'cmake' 'automoc4' 'boost' "kdelibs>=${_kdever}" "kdepimlibs>=${_kdever}"
|
||||
"kdepim-runtime>=${_kdever}" 'gnokii' 'libxss' "kdebase-runtime>=${_kdever}" 'pilot-link'
|
||||
'kde-agent' 'libindicate-qt>=0.2.2')
|
||||
|
||||
source=("$_mirror/${_origname}-$_kdever.tar.bz2"
|
||||
"korganizer-urihandler.patch")
|
||||
|
||||
md5sums=('c3edd9da3d626d19936f92b5da81677c' # kdepim-4.4.3.tar.bz2
|
||||
'2ffa8ef6e1f370331b6e5f3b5521120d') # korganizer-urihandler.patch
|
||||
|
||||
#
|
||||
# build function
|
||||
#
|
||||
build()
|
||||
{
|
||||
cd ${srcdir}/${_origname}-${pkgver}
|
||||
|
||||
msg "apply patches ..."
|
||||
# fixes FS#19373
|
||||
# will be part of 4.4.4
|
||||
patch -p4 -i ${srcdir}/korganizer-urihandler.patch || return 1
|
||||
|
||||
|
||||
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 || return 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
#
|
||||
# split-install functions
|
||||
#
|
||||
package_kdepim-common()
|
||||
{
|
||||
pkgdesc="KDE PIM - Common files and libraries"
|
||||
depends=("kdepimlibs>=${_kdever}" 'gnokii' 'libxss' "kdebase-runtime>=${_kdever}" 'pilot-link' 'kde-agent'
|
||||
'libxss' 'libindicate-qt>=0.2.2')
|
||||
|
||||
conflicts=("kdmeod-${_origname}-common")
|
||||
replaces=('kdepim-common-devel')
|
||||
groups=("kde" "kdepim" "kde-complete" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
# FIXME nepomuk_email_feeder disabled
|
||||
#splitdirs="akonadi icons console kdgantt1 kleopatra kode kresources ksendemail libkdepim libkholidays libkleo libkpgp libksieve messagecore messagelist messageviewer mimelib nepomuk_email_feeder ontologies plugins strigi-analyzer"
|
||||
splitdirs="akonadi icons console kdgantt1 kleopatra kode kresources ksendemail libkdepim libkholidays libkleo libkpgp libksieve messagecore messagelist messageviewer mimelib ontologies plugins strigi-analyzer"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
|
||||
# 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/kdemod/patches/${_origname} &>/dev/null
|
||||
for i in ${startdir}/*.patch; do
|
||||
msg "$i"
|
||||
cp $i ${pkgdir}/usr/share/kdemod/patches/${_origname}/ &>/dev/null
|
||||
done
|
||||
else
|
||||
warning "no patches found, skipping to include them into the package..."
|
||||
fi
|
||||
|
||||
# FIXME: also exists in oxygen-icons
|
||||
rm -rf $pkgdir/usr/share/icons/oxygen/16x16/status/meeting-organizer.png
|
||||
}
|
||||
|
||||
package_kdepim-doc()
|
||||
{
|
||||
pkgdesc="KDE PIM - Documentation"
|
||||
groups=("${_origname}" "kde-complete" "kde-doc" "kde-uninstall")
|
||||
conflicts=("kdmeod-${_origname}-doc")
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
|
||||
splitdirs="doc"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdepim-akonadiconsole()
|
||||
{
|
||||
pkgdesc="Akonadi console"
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-akonadiconsole")
|
||||
replaces=("kdepim-akonadiconsole-devel")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="akonadiconsole"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdepim-akregator()
|
||||
{
|
||||
pkgdesc="Newsfeed client"
|
||||
groups=("kde" "kde-complete" "${_origname}" "kde-uninstall")
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-akregator")
|
||||
replaces=("kdepim-akregator-devel")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="akregator"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdepim-blogilo()
|
||||
{
|
||||
pkgdesc="Blogilo is a free/Open Source Blogging application, focused on simplicity and usability."
|
||||
groups=("kde" "kde-complete" "${_origname}" "kde-uninstall")
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-blogilo")
|
||||
replaces=("kdepim-blogilo-devel")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="blogilo"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdepim-kaddressbook()
|
||||
{
|
||||
pkgdesc="Addressbook"
|
||||
groups=("kde" "${_origname}" "kde-complete" "kde-uninstall")
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kaddressbook")
|
||||
replaces=('kdepim-kaddressbook-devel')
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kaddressbook"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdepim-kalarm()
|
||||
{
|
||||
pkgdesc="Alarm App + Daemon"
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kalarm")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kalarm"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdepim-kitchensync()
|
||||
{
|
||||
pkgdesc="Opensync synchronization gui"
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
depends=("${_origname}-common>=${_kdever}" 'libopensync')
|
||||
conflicts=("kdemod-${_origname}-kitchensync")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kitchensync"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdepim-kjots()
|
||||
{
|
||||
pkgdesc="A small, handy program for keeping miscellaneous notes"
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kjots")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kjots"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdepim-kmail()
|
||||
{
|
||||
pkgdesc="A full-featured E-Mail client"
|
||||
groups=("kde" "${_origname}" "kde-complete" "kde-uninstall")
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kmail")
|
||||
replaces=('kdepim-kmail-devel')
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kmail kmailcvt"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdepim-kmobiletools()
|
||||
{
|
||||
pkgdesc="Sync your mobile phone"
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
depends=("${_origname}-common>=${_kdever}" 'gnokii>=0.6.14')
|
||||
conflicts=("kdemod-${_origname}-kmobiletools")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kmobiletools"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdepim-knode()
|
||||
{
|
||||
pkgdesc="NNTP client"
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-knode")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="knode"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdepim-knotes()
|
||||
{
|
||||
pkgdesc="Sticky notes for your Desktop"
|
||||
groups=("kde" "${_origname}" "kde-complete" "kde-uninstall")
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-knotes")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="knotes"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdepim-kontact()
|
||||
{
|
||||
pkgdesc="Groupware client and shell for other PIM applications"
|
||||
groups=("${_origname}" "complete" "uninstall")
|
||||
depends=("${_origname}-common>=${_kdever}" "${_origname}-kmail>=${_kdever}" "${_origname}-akregator>=${_kdever}" "${_origname}-kaddressbook>=${_kdever}" "${_origname}-kjots>=${_kdever}" "${_origname}-knotes>=${_kdever}" "${_origname}-korganizer>=${_kdever}" "${_origname}-ktimetracker>=${_kdever}" "${_origname}-wizards>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kontact")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kontact kontactinterfaces"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdepim-korganizer()
|
||||
{
|
||||
pkgdesc="Organizer and Planner"
|
||||
groups=("kde" "${_origname}" "kde-complete" "kde-uninstall")
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-korganizer")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="korganizer"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
|
||||
# remove conflict with kdebase-runtime
|
||||
rm -f ${pkgdir}/usr/share/icons/oxygen/32x32/actions/appointment-new.png
|
||||
}
|
||||
|
||||
package_kdepim-ktimetracker()
|
||||
{
|
||||
pkgdesc="Time tracking software"
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-ktimetracker")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="ktimetracker"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdepim-wizards()
|
||||
{
|
||||
pkgdesc="KDE groupware wizards"
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-wizards")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="wizards"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
88
kdepim/kdepim.install
Normal file
88
kdepim/kdepim.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 $*
|
14
kdepim/korganizer-urihandler.patch
Normal file
14
kdepim/korganizer-urihandler.patch
Normal file
@ -0,0 +1,14 @@
|
||||
--- branches/KDE/4.4/kdepim/korganizer/urihandler.cpp 2010/01/06 22:46:33 1070858
|
||||
+++ branches/KDE/4.4/kdepim/korganizer/urihandler.cpp 2010/05/03 21:56:54 1122444
|
||||
@@ -78,8 +78,11 @@
|
||||
*/
|
||||
QString iconPath =
|
||||
KIconLoader::global()->iconPath( "view-pim-contacts", KIconLoader::SizeSmall );
|
||||
+#if 0
|
||||
QString tmpStr = "kaddressbook --editor-only --uid ";
|
||||
tmpStr += KShell::quoteArg( uri.mid( ::qstrlen( KDEPIMPROTOCOL_CONTACT ) ) );
|
||||
+#endif
|
||||
+ QString tmpStr = "kaddressbook";
|
||||
KRun::runCommand( tmpStr, "KAddressBook", iconPath, 0 );
|
||||
return true;
|
||||
}
|
81
kdeplasma-addons/PKGBUILD
Normal file
81
kdeplasma-addons/PKGBUILD
Normal file
@ -0,0 +1,81 @@
|
||||
#
|
||||
# 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=kdeplasma-addons
|
||||
|
||||
|
||||
|
||||
#
|
||||
# package info
|
||||
#
|
||||
pkgname=${_origname}
|
||||
arch=('i686' 'x86_64')
|
||||
pkgver=${_kdever}
|
||||
pkgrel=1
|
||||
|
||||
pkgdesc="KDE Plasma Addons"
|
||||
url="http://www.kde.org/"
|
||||
license=('GPL' 'LGPL' 'FDL')
|
||||
|
||||
conflicts=("kdemod-${_origname}")
|
||||
|
||||
install=${_origname}.install
|
||||
options=('docs' '!splithdr')
|
||||
|
||||
depends=("kdebase-workspace>=${_kdever}" 'libqalculate' "kdeedu-marble>=${_kdever}" 'qwt')
|
||||
|
||||
makedepends=('pkgconfig' 'cmake' 'automoc4' "kdebase-workspace>=${_kdever}" 'libqalculate'
|
||||
"kdegraphics-common>=${_kdever}" "kdeedu-marble>=${_kdever}" 'eigen' 'scim' 'qwt')
|
||||
|
||||
groups=("kde-complete" "kde-uninstall")
|
||||
|
||||
source=($_mirror/${_origname}-$_kdever.tar.bz2)
|
||||
md5sums=('e347d1ca1f1e3100e838287365de43e4') # kdeplasma-addons-4.4.3.tar.bz2
|
||||
|
||||
|
||||
#
|
||||
# build and install
|
||||
#
|
||||
build()
|
||||
{
|
||||
cd ${srcdir}
|
||||
|
||||
msg "starting build ..."
|
||||
mkdir 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/kdemod/patches/${_origname} &>/dev/null
|
||||
for i in ${startdir}/*.patch; do
|
||||
msg "$i"
|
||||
cp $i ${pkgdir}/usr/share/kdemod/patches/${_origname}/ &>/dev/null
|
||||
done
|
||||
else
|
||||
warning "no patches found, skipping to include them into the package..."
|
||||
fi
|
||||
|
||||
# WORKAROUND, also in oxygen-icons
|
||||
rm -rf $pkgdir/usr/share/icons/oxygen/scalable/apps/accessories-dictionary.svgz
|
||||
}
|
88
kdeplasma-addons/kdeplasma-addons.install
Normal file
88
kdeplasma-addons/kdeplasma-addons.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 $*
|
178
kdetoys/PKGBUILD
Normal file
178
kdetoys/PKGBUILD
Normal file
@ -0,0 +1,178 @@
|
||||
#
|
||||
# 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=kdetoys
|
||||
|
||||
|
||||
|
||||
#
|
||||
# package info
|
||||
#
|
||||
pkgbase=('kdetoys')
|
||||
pkgname=('kdetoys-common'
|
||||
'kdetoys-doc'
|
||||
'kdetoys-amor'
|
||||
'kdetoys-kteatime'
|
||||
'kdetoys-ktux'
|
||||
'kdetoys-kweather')
|
||||
|
||||
arch=('i686' 'x86_64')
|
||||
pkgver=${_kdever}
|
||||
pkgrel=1
|
||||
|
||||
pkgdesc="split package"
|
||||
url="http://www.kde.org"
|
||||
license=('GPL' 'LGPL' 'FDL')
|
||||
|
||||
options=('docs')
|
||||
|
||||
makedepends=('pkgconfig' 'cmake' 'automoc4' "kdebase-workspace>=${_kdever}")
|
||||
|
||||
source=($_mirror/${_origname}-$_kdever.tar.bz2)
|
||||
md5sums=('2e0f065b3b40cc4a4246ee4a0f97065a') # kdetoys-4.4.3.tar.bz2
|
||||
|
||||
|
||||
#
|
||||
# build function
|
||||
#
|
||||
build()
|
||||
{
|
||||
cd ${srcdir}/${_origname}-${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 || return 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
#
|
||||
# split-install functions
|
||||
#
|
||||
package_kdetoys-common()
|
||||
{
|
||||
pkgdesc="${_origname} - Common files and libraries"
|
||||
depends=("kdebase-workspace>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-common")
|
||||
groups=("kde-complete" "kdetoys" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
# 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/kdemod/patches/${_origname} &>/dev/null
|
||||
for i in ${startdir}/*.patch; do
|
||||
msg "$i"
|
||||
cp $i ${pkgdir}/usr/share/kdemod/patches/${_origname}/ &>/dev/null
|
||||
done
|
||||
else
|
||||
warning "no patches found, skipping to include them into the package..."
|
||||
fi
|
||||
}
|
||||
|
||||
package_kdetoys-doc()
|
||||
{
|
||||
pkgdesc="${_origname} - Documentation"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-doc")
|
||||
groups=("kde-complete" "kdetoys" "kde-doc" "kde-uninstall")
|
||||
|
||||
splitdirs="doc"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdetoys-amor()
|
||||
{
|
||||
pkgdesc="Amusing Misuse Of Resources puts comic figures above your windows"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-amor")
|
||||
groups=("kde-complete" "kdetoys" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="amor"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdetoys-eyesapplet()
|
||||
{
|
||||
pkgdesc="An applet similar to XEyes"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-eyesapplet")
|
||||
groups=("kde-complete" "kdetoys" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="eyesapplet"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdetoys-kteatime()
|
||||
{
|
||||
pkgdesc="System tray applet that makes sure your tea doesn't get too strong"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kteatime")
|
||||
groups=("kde-complete" "kdetoys" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kteatime"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdetoys-ktux()
|
||||
{
|
||||
pkgdesc="Tux-in-a-Spaceship screen saver"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-ktux")
|
||||
groups=("kde-complete" "kdetoys" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="ktux"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdetoys-kweather()
|
||||
{
|
||||
pkgdesc="Kicker applet that will display the current weather outside"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kweather")
|
||||
groups=("kde-complete" "kdetoys" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kweather"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
|
88
kdetoys/kdetoys.install
Normal file
88
kdetoys/kdetoys.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 $*
|
344
kdeutils/PKGBUILD
Normal file
344
kdeutils/PKGBUILD
Normal file
@ -0,0 +1,344 @@
|
||||
#
|
||||
# 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=kdeutils
|
||||
|
||||
|
||||
|
||||
#
|
||||
# package info
|
||||
#
|
||||
pkgbase=('kdeutils')
|
||||
pkgname=('kdeutils-common'
|
||||
'kdeutils-doc'
|
||||
'kdeutils-ark'
|
||||
'kdeutils-kcalc'
|
||||
'kdeutils-kcharselect'
|
||||
'kdeutils-kdelirc'
|
||||
'kdeutils-kdf'
|
||||
'kdeutils-kfloppy'
|
||||
'kdeutils-kgpg'
|
||||
'kdeutils-ktimer'
|
||||
'kdeutils-kwallet'
|
||||
'kdeutils-okteta'
|
||||
'kdeutils-printer-applet'
|
||||
'kdeutils-superkaramba'
|
||||
'kdeutils-sweeper')
|
||||
|
||||
arch=('i686' 'x86_64')
|
||||
pkgver=${_kdever}
|
||||
pkgrel=1
|
||||
|
||||
pkgdesc="split package"
|
||||
url="http://www.kde.org"
|
||||
license=('GPL' 'LGPL' 'FDL')
|
||||
|
||||
options=('docs')
|
||||
|
||||
makedepends=('pkgconfig' 'cmake' 'automoc4' "kdelibs>=${_kdever}"
|
||||
"kdepimlibs>=${_kdever}" "kdebase>=${_kdever}"
|
||||
"kdebase-workspace>=${_kdever}" "kdebindings-python>=${_kdever}"
|
||||
'system-config-printer-common' 'libarchive' 'qimageblitz'
|
||||
"kdepim-runtime>=${_kdever}" 'p7zip' 'zip' 'unzip' 'unrar')
|
||||
|
||||
source=($_mirror/${_origname}-$_kdever.tar.bz2)
|
||||
md5sums=('862ad8f17c0b2122a79c7d709a5ff5f3') # kdeutils-4.4.3.tar.bz2
|
||||
|
||||
|
||||
#
|
||||
# build function
|
||||
#
|
||||
build()
|
||||
{
|
||||
cd ${srcdir}/${_origname}-${pkgver}
|
||||
|
||||
msg "starting build ..."
|
||||
cmake . -DCMAKE_BUILD_TYPE=${_build_type} \
|
||||
-DINSTALL_PRINTER_APPLET=TRUE \
|
||||
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
||||
-DCMAKE_SKIP_RPATH=ON \
|
||||
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
|
||||
|
||||
make || return 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
#
|
||||
# split-install functions
|
||||
#
|
||||
package_kdeutils-common()
|
||||
{
|
||||
pkgdesc="KDE Utilities - Common files and libraries"
|
||||
provides=("${_origname}=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-common")
|
||||
groups=("kde" "kde-complete" "kdeutils" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
# 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/kdemod/patches/${_origname} &>/dev/null
|
||||
for i in ${startdir}/*.patch; do
|
||||
msg "$i"
|
||||
cp $i ${pkgdir}/usr/share/kdemod/patches/${_origname}/ &>/dev/null
|
||||
done
|
||||
else
|
||||
warning "no patches found, skipping to include them into the package..."
|
||||
fi
|
||||
}
|
||||
|
||||
package_kdeutils-doc()
|
||||
{
|
||||
pkgdesc="KDE Utilities - Documentation"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-doc")
|
||||
groups=("kde-complete" "kdeutils" "kde-doc" "kde-uninstall")
|
||||
|
||||
splitdirs="doc"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeutils-ark()
|
||||
{
|
||||
pkgdesc="Archiver for various compression formats"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}"
|
||||
"kdebase>=${_kdever}" 'libarchive')
|
||||
optdepends=('p7zip' 'zip' 'unzip' 'unrar')
|
||||
conflicts=("kdemod-${_origname}-ark")
|
||||
groups=("kde" "kde-complete" "kdeutils" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="ark"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeutils-kcalc()
|
||||
{
|
||||
pkgdesc="Scientific calculator"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}"
|
||||
"kdebase>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kcalc")
|
||||
groups=("kde" "kde-complete" "kdeutils" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kcalc"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeutils-kcharselect()
|
||||
{
|
||||
pkgdesc="Character selector"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}"
|
||||
"kdebase>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kcharselect")
|
||||
groups=("kde" "kde-complete" "kdeutils" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kcharselect"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeutils-kdelirc()
|
||||
{
|
||||
pkgdesc="KDE Linux infrared remote control server."
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}"
|
||||
"kdebase>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kdelirc")
|
||||
groups=("kde" "kde-complete" "kdeutils" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kdelirc"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
|
||||
|
||||
# FIXME -> strange stuff????
|
||||
rm -rf ${pkgdir}/usr/share/apps/profiles/kscd.profile.xml
|
||||
}
|
||||
|
||||
package_kdeutils-kdessh()
|
||||
{
|
||||
pkgdesc="A KDE frontend to SSH"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}"
|
||||
"kdebase>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kdessh")
|
||||
groups=("kde-complete" "kdeutils" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kdessh"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeutils-kdf()
|
||||
{
|
||||
pkgdesc="KDE diskfree"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}"
|
||||
"kdebase>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kdf")
|
||||
groups=("kde-complete" "kdeutils" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kdf"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeutils-kfloppy()
|
||||
{
|
||||
pkgdesc="Floppy formatter"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}"
|
||||
"kdebase>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kfloppy")
|
||||
groups=("kde-complete" "kdeutils" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kfloppy"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeutils-kgpg()
|
||||
{
|
||||
pkgdesc="GPG encryption and key management"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}"
|
||||
"kdelibs>=${_kdever}" "kdepimlibs>=${_kdever}" 'kde-agent'
|
||||
"kdepim-runtime>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kgpg")
|
||||
groups=("kde" "kde-complete" "kdeutils" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kgpg"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeutils-ktimer()
|
||||
{
|
||||
pkgdesc="Timer application"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}"
|
||||
"kdebase>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-ktimer")
|
||||
groups=("kde-complete" "kdeutils" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="ktimer"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeutils-kwallet()
|
||||
{
|
||||
pkgdesc="The KDE wallet system"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}"
|
||||
"kdebase>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kwallet")
|
||||
groups=("kde" "kde-complete" "kdeutils" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kwallet"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeutils-okteta()
|
||||
{
|
||||
pkgdesc="Okteta is a simple editor for the raw data of files, also known as a hex editor."
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}"
|
||||
"kdebase>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-okteta")
|
||||
groups=("kde-complete" "kdeutils" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="okteta"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeutils-printer-applet()
|
||||
{
|
||||
pkgdesc="A system tray utility that shows current print jobs, printer warnings and errors"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}"
|
||||
"kdebase>=${_kdever}" "kdebindings-python>=${_kdever}" 'system-config-printer-common')
|
||||
conflicts=("kdemod-${_origname}-printer-applet")
|
||||
groups=("kde-complete" "kdeutils" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="printer-applet"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeutils-superkaramba()
|
||||
{
|
||||
pkgdesc="Desktop widgets"
|
||||
depends=("${_origname}-common>=${_kdever}" 'qimageblitz')
|
||||
conflicts=("kdemod-${_origname}-superkaramba")
|
||||
groups=("kde-complete" "kdeutils" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="superkaramba"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdeutils-sweeper()
|
||||
{
|
||||
pkgdesc="Clean unwanted traces the user leaves on the system"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}"
|
||||
"kdebase>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-sweeper")
|
||||
groups=("kde-complete" "kdeutils" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="sweeper"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
|
88
kdeutils/kdeutils.install
Normal file
88
kdeutils/kdeutils.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 $*
|
167
kdewebdev/PKGBUILD
Normal file
167
kdewebdev/PKGBUILD
Normal file
@ -0,0 +1,167 @@
|
||||
#
|
||||
# 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=kdewebdev
|
||||
|
||||
|
||||
|
||||
#
|
||||
# package info
|
||||
#
|
||||
pkgbase=('kdewebdev')
|
||||
pkgname=('kdewebdev-common'
|
||||
'kdewebdev-doc'
|
||||
'kdewebdev-kfilereplace'
|
||||
'kdewebdev-kimagemapeditor'
|
||||
'kdewebdev-kommander'
|
||||
'kdewebdev-klinkstatus')
|
||||
|
||||
arch=('i686' 'x86_64')
|
||||
pkgver=${_kdever}
|
||||
pkgrel=1
|
||||
|
||||
pkgdesc="split package"
|
||||
url="http://www.kde.org/"
|
||||
license=('GPL' 'LGPL' 'FDL')
|
||||
|
||||
options=('docs' '!splithdr')
|
||||
|
||||
makedepends=('pkgconfig' 'cmake' 'automoc4' 'ruby' "kdepimlibs>=${_kdever}"
|
||||
"kdebase-runtime>=${_kdever}" 'tidyhtml' "kdepim-runtime>=${_kdever}")
|
||||
|
||||
source=($_mirror/${_origname}-$_kdever.tar.bz2)
|
||||
md5sums=('35f0290cbf38af89e4a9e03898588129') # kdewebdev-4.4.3.tar.bz2
|
||||
|
||||
|
||||
|
||||
#
|
||||
# build function
|
||||
#
|
||||
build()
|
||||
{
|
||||
cd ${srcdir}/${_origname}-${pkgver}
|
||||
|
||||
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 || return 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
#
|
||||
# split-install functions
|
||||
#
|
||||
package_kdewebdev-common()
|
||||
{
|
||||
pkgdesc="KDE webdev - Common files and libraries"
|
||||
provides=("${_origname}=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-common")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
# 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/kdemod/patches/${_origname} &>/dev/null
|
||||
for i in ${startdir}/*.patch; do
|
||||
msg "$i"
|
||||
cp $i ${pkgdir}/usr/share/kdemod/patches/${_origname}/ &>/dev/null
|
||||
done
|
||||
else
|
||||
warning "no patches found, skipping to include them into the package..."
|
||||
fi
|
||||
}
|
||||
|
||||
package_kdewebdev-doc()
|
||||
{
|
||||
pkgdesc="KDE webdev - Documentation"
|
||||
depends=("${_origname}-common>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-doc")
|
||||
groups=("kde-complete" "${_origname}" "kde-doc" "kde-uninstall")
|
||||
|
||||
splitdirs="doc"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdewebdev-kfilereplace()
|
||||
{
|
||||
pkgdesc="Utility that replace some strings with others in a lot of files in an only operation"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}"
|
||||
"kdelibs>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kfilereplace")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kfilereplace"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdewebdev-kimagemapeditor()
|
||||
{
|
||||
pkgdesc="Image map editor"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}"
|
||||
"kdelibs>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kimagemapeditor")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kimagemapeditor"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdewebdev-kommander()
|
||||
{
|
||||
pkgdesc="Kommander, the visual application builder"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}"
|
||||
"kdelibs>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-kommander")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
replaces=('kdewebdev-kommander-devel')
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="kommander"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
||||
package_kdewebdev-klinkstatus()
|
||||
{
|
||||
pkgdesc="A Link checker utility"
|
||||
depends=("${_origname}-common>=${_kdever}" "kdebase-runtime>=${_kdever}"
|
||||
"kdelibs>=${_kdever}" 'tidyhtml' "kdepim-runtime>=${_kdever}")
|
||||
conflicts=("kdemod-${_origname}-klinkstatus")
|
||||
groups=("kde-complete" "${_origname}" "kde-uninstall")
|
||||
install=${_origname}.install
|
||||
|
||||
splitdirs="klinkstatus"
|
||||
for i in ${splitdirs} ; do
|
||||
cd ${srcdir}/${_origname}-${pkgver}/${i}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
done
|
||||
}
|
||||
|
88
kdewebdev/kdewebdev.install
Normal file
88
kdewebdev/kdewebdev.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