Add additional support in kdebase-workspace and support-pkgs

This commit is contained in:
Manuel 2010-12-23 23:33:22 +00:00
parent 38dfff97cf
commit 1f6b4a49ff
9 changed files with 214 additions and 18 deletions

View File

@ -32,7 +32,7 @@ license=('GPL' 'LGPL' 'FDL')
options=('docs' '!splithdr' 'splitdbg' 'log')
makedepends=('pkgconfig' 'cmake' 'automoc4' "kdepimlibs>=${_kdever}" 'openslp'
'xine-lib' 'libpulse' 'libssh' 'ntrack' 'libcanberra' 'libcanberra-pulse')
'xine-lib' 'libpulse' 'libssh' 'ntrack' 'libcanberra' 'libcanberra-pulse' 'samba')
groups=('kde' 'kde-complete')

View File

@ -40,7 +40,8 @@ depends=('polkit-kde' "kdepimlibs>=${_kdever}" 'qimageblitz'
'libxdamage' 'xorg-utils' 'libxrandr' "kdepim-runtime>=${_kdever}")
makedepends=('pkgconfig' 'cmake' 'automoc4' 'networkmanager' 'bluez' "kdebindings-python>=${_kdever}"
"kdebindings-ruby>=${_kdever}" 'oxygen-icons' 'qedje' "kdebase-runtime>=${_kdever}") # 'gpsd' 'google-gadgets-qt>=0.11.1'
"kdebindings-ruby>=${_kdever}" 'oxygen-icons' 'qedje' "kdebase-runtime>=${_kdever}" 'gpsd' 'samba' 'libraw1394' 'libdmtx' 'consolekit')
# 'google-gadgets-qt>=0.11.1' needs gtk :/
source=($_mirror/${_origname}-$_kdever.tar.bz2
mishaaq-kcm_touchpad-00370b5.tar.gz
@ -76,10 +77,10 @@ source=($_mirror/${_origname}-$_kdever.tar.bz2
fix_kdm_configdef.patch
# "fix" some sytemsettings modules that need root access
fix_root-only-kcms.patch
fix_root-only-kcms.patch)
# fix powerdevil
trunk_powerdevil.patch)
# trunk_powerdevil.patch
# experimental, software transparency for plasma panels
# feature_plasma-transparent-panel-v4-rb#472.patch
@ -110,18 +111,18 @@ md5sums=(`grep ${_origname}-$_kdever.tar.bz2 ../kde-sc.md5 | cut -d" " -f1`
'e2eb9d270fe0e93901b29256bdedd7e2' # 02_sane_env_and_shutdown_path.patch
'8e623bb5608025417ff9ed061e5a03f1' # 03_plasma_menubutton_branding.patch
'522a294c09d88d3d722de3f39fd203c3' # 04_plasma_kickoff_url.patch
# '0aba9287f038d66afbf545c83a46fd19' # 05_plasma_desktop_defaults.patch
# '0aba9287f038d66afbf545c83a46fd19' # 05_plasma_desktop_defaults.patch
'0ee6e12bb9830b4248becb0442dc7e0c' # 06_kickoff_default_favourites.patch
'89d96455c6a446ef59b0620d1b8606af' # 07_always_show_kickoff_subtext.patch
'5eb9285268916492012151045bdebd26' # 09_enable_start-shutdown-scripts.patch
'db2d8166f5ea80ecd291deb9c0e2bb71' # fix_kdm-increase-xserver-timeout-bnc#462478.patch
'814350c52c135d6f7bdada1e29223d38' # fix_terminate-server.patch
# '5d752cf39a28306438bb6d82db6e1696' # fix_ck-shutdown.patch
# '5d752cf39a28306438bb6d82db6e1696'# fix_ck-shutdown.patch
'97a5eb51e6f9d460f0d61bb322a1db5e' # fix_kdm_configdef.patch
'5f963f80a026f0600edae1b1c70411e5' # fix_root-only-kcms.patch
'5f963f80a026f0600edae1b1c70411e5') # fix_root-only-kcms.patch
'c6b58eb228d16c77d692df655046ee9f') # trunk_powerdevil.patch
# 'c6b58eb228d16c77d692df655046ee9f' # trunk_powerdevil.patch
# '13c3203589143e9e2fc757c17375227a' # feature_plasma-transparent-panel-v4-rb#472.patch
@ -175,10 +176,10 @@ build()
# patch -Np1 -i ${srcdir}/feature_history-notifications-enable-disable-kde#119207.patch || return 1
# patch -Np1 -i ${srcdir}/feature_kdm-plymouth.patch || return 1
msg "applying upstream patches ..."
patch -Np1 -i ${srcdir}/trunk_powerdevil.patch || return 1
# msg "applying upstream patches ..."
# patch -Np1 -i ${srcdir}/trunk_powerdevil.patch || return 1
#msg "applying arch patches ..."
# msg "applying chakra patches ..."
msg "starting workspace build ..."

View File

@ -39,7 +39,7 @@ license=('GPL' 'LGPL' 'FDL')
install=${_origname}.install
options=('docs' '!splithdr' 'splitdbg' 'log')
makedepends=('pkgconfig' 'cmake' 'automoc4' "kdelibs>=${_kdever}" 'pyqt>=4.8.1'
makedepends=('pkgconfig' 'cmake' 'automoc4' "kdelibs>=${_kdever}" 'pyqt>=4.8.1' 'qwt'
'ruby' 'mono' "kdegraphics-okular>=${_kdever}" "kdegraphics-common>=${_kdever}" "kdepim-runtime>=${_kdever}")
source=($_mirror/${_origname}-$_kdever.tar.bz2)

View File

@ -20,8 +20,8 @@ _origname=kdepim-runtime
pkgname=${_origname}
arch=('i686' 'x86_64')
#pkgver=${_kdever}
pkgver=4.5beta1
_pkgver=4.5-beta1
pkgver=4.6beta3
_pkgver=4.6beta3
pkgrel=1
pkgdesc="KDE Pim Runtime"
@ -40,10 +40,8 @@ makedepends=('pkgconfig' 'cmake' 'automoc4')
groups=("kde" "kde-complete" "kde-uninstall" "kde-minimal")
#source=($_mirror/${_origname}-$_kdever.tar.bz2)
source=($_mirror/${_origname}-4.5-beta1.tar.bz2)
md5sums=('0bb384fced99272d2d4401acea7b1117') # kdepim-runtime-4.5-beta1.tar.bz2
source=($_mirror/${_origname}-4.6beta3.tar.bz2)
md5sums=('f24a0f40e12f5d2767880ac190f781f4') # kdepim-runtime-4.6beta3.tar.bz2
#
# build and install

38
support-pkg-gpsd/LICENSE Normal file
View File

@ -0,0 +1,38 @@
COPYRIGHTS
Compilation copyright is held by the GPSD project. All rights reserved.
GPSD project copyrights are assigned to the project lead, currently
Eric S. Raymond. Other portions of the GPSD code are Copyright (c)
1997, 1998, 1999, 2000, 2001, 2002 by Remco Treffkorn, and others
Copyright (c) 2005 by Eric S. Raymond. For other copyrights, see
individual files.
BSD LICENSE
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:<P>
Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.<P>
Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.<P>
Neither name of the GPSD project nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

77
support-pkg-gpsd/PKGBUILD Normal file
View File

@ -0,0 +1,77 @@
#
# 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>
pkgname=gpsd
pkgver=2.95
pkgrel=1
pkgdesc="GPS daemon and library to support USB/serial GPS devices"
arch=('i686' 'x86_64')
url="http://gpsd.berlios.de"
license=('BSD')
depends=('lesstif' 'libxaw' 'python2' 'pth' 'libusb' 'desktop-file-utils')
optdepends=('php: generate a PHP status page for your GPS'
'php-gd: image support for the PHP status page')
makedepends=('docbook-xsl')
backup=('etc/conf.d/gpsd' 'lib/udev/rules.d/99-gpsd-usb.rules')
options=('!libtool')
install="${pkgname}.install"
source=("http://download.berlios.de/${pkgname}/${pkgname}-${pkgver}.tar.gz"
'gpsd' 'LICENSE')
md5sums=('12535a9ed9fecf9ea2c5bdc9840da5ae'
'f929322fc4670543fcb36dafc7bb9e03'
'd217a23f408e91c94359447735bc1800')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# install python to the same DESTDIR given make
sed -i 's|--prefix=${prefix} # --root=$(DESTDIR)|--prefix=${prefix} --root=$(DESTDIR)|' Makefile.am Makefile.in
# fix python 2.7 path
sed -i 's|/usr/bin/python|/usr/bin/python2|' gpsd.hotplug{,.wrapper}
sed -i 's|/usr/bin/python2.6|/usr/bin/python2|' valgrind-audit
sed -i 's|/usr/bin/env python|/usr/bin/env python2|' gpscat \
gpsfake gpsprof xgps xgpsspeed gps/gps.py
PYTHON=/usr/bin/python2 ./configure --prefix=/usr \
--disable-libQgpsmm \
--disable-static
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Fix man pages path (FS#21715)
sed -i 's|.so gps.1|.so man1/gps.1|' cgps.1 lcdgps.1 xgps.1 xgpsspeed.1
make DESTDIR="${pkgdir}" install
# Our own udev-install since the Makefile uses absolute paths
# Original file names are [mostly] unmodified: useful to match process name in case of error
# Following the switch from hotplug to udev helper scripts now live in /lib/udev/ instead of /etc/hotplug/
sed -i 's|GPSD_OPTIONS=""|GPSD_OPTIONS="-P /var/run/gpsd.pid"|' packaging/deb/etc_default_gpsd
sed -i 's|"/var/run/gpsd.sock"|"/var/run/gpsd/gpsd.sock"|' packaging/deb/etc_default_gpsd
install -D -m644 "packaging/deb/etc_default_gpsd" "${pkgdir}/etc/conf.d/gpsd"
sed -i 's|Id: gpsd.rules|Id: 99-gpsd-usb.rules|' gpsd.rules
install -D -m644 "gpsd.rules" "${pkgdir}/lib/udev/rules.d/99-gpsd-usb.rules"
sed -i 's|/etc/default/gpsd|/etc/conf.d/gpsd|' gpsd.hotplug.wrapper
install -D -m755 gpsd.hotplug.wrapper "${pkgdir}/lib/udev/gpsd.hotplug.wrapper"
# Patch a path bug. Check to see if fixed in ensuing releases
sed -i 's|gpsdcmd = "gpsd %s|gpsdcmd = "/usr/sbin/gpsd %s|' gpsd.hotplug
install -D -m755 gpsd.hotplug "${pkgdir}/lib/udev/gpsd.hotplug"
install -D -m644 packaging/X11/xgps.desktop ${pkgdir}/usr/share/applications/xgps.desktop
install -D -m644 packaging/X11/xgpsspeed.desktop ${pkgdir}/usr/share/applications/xgpsspeed.desktop
install -D -m644 packaging/X11/gpsd-logo.png ${pkgdir}/usr/share/gpsd/gpsd-logo.png
install -D -m755 "${srcdir}/gpsd" "${pkgdir}/etc/rc.d/gpsd"
install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

43
support-pkg-gpsd/gpsd Executable file
View File

@ -0,0 +1,43 @@
#! /bin/sh
. /etc/rc.conf
. /etc/rc.d/functions
[ -f /etc/conf.d/gpsd ] && . /etc/conf.d/gpsd
NAME=gpsd
DAEMON=/usr/sbin/$NAME
PID=$(pidof -o %PPID /usr/sbin/gpsd)
case "$1" in
start)
stat_busy "Starting gpsd"
[ ! -d /var/run/gpsd ] && install -d /var/run/gpsd
[ -z "$PID" ] && "$DAEMON" ${GPSD_OPTIONS} -F ${GPSD_SOCKET} ${DEVICES}
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon gpsd
stat_done
fi
;;
stop)
stat_busy "Stopping gpsd"
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm -f /var/run/$PID.pid &>/dev/null
rm_daemon gpsd
stat_done
fi
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0

View File

@ -0,0 +1,16 @@
post_install() {
echo ">>> Note: the supplied gpsd udev rules are device-specific, so"
echo ">>> if your device isn't detected correctly, please use lsusb or"
echo ">>> another suitable tool to determine the proper device IDs and"
echo ">>> use the commented rules to fill in the blanks for your device."
update-desktop-database -q
}
post_upgrade() {
update-desktop-database -q
}
post_remove() {
update-desktop-database -q
}

View File

@ -0,0 +1,23 @@
#
# 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>
pkgname=libdmtx
pkgver=0.7.2
pkgrel=1
pkgdesc="software for reading and writing Data Matrix 2D barcodes"
url=('http://www.libdmtx.org/')
arch=('i686' 'x86_64')
license=('GPL-2')
depends=('imagemagick')
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
md5sums=('e23705cd9bd40b9d7cf1e7c750c67ca5')
build() {
cd $srcdir/${pkgname}-${pkgver}
./configure --prefix=/usr
make
make DESTDIR="$pkgdir/" install || return 1
}