diff --git a/chakra-libpartitionmanager/PKGBUILD b/chakra-libpartitionmanager/PKGBUILD new file mode 100644 index 000000000..3d7a7f1e6 --- /dev/null +++ b/chakra-libpartitionmanager/PKGBUILD @@ -0,0 +1,65 @@ +# +# Chakra Packages for Chakra, part of chakra-project.org +# +# maintainer (i686): Phil Miller +# maintainer (x86_64): Manuel Tortosa + +# include global config +source ../_buildscripts/${current_repo}-${_arch}-cfg.conf + +# +# package info +# +pkgname=chakra-libpartitionmanager +pkgver=20100521 +pkgrel=1 +pkgdesc="Tribe's partitionmanager" +url="http://git.chakra-project.org/chakra/" +license="GPL" +arch=('i686' 'x86_64') +depends=('kdebase-workspace' 'parted>=2.2' 'e2fsprogs' 'libatasmart') +replaces=('kdemod-tribe-partitionmanager') +makedepends=('cmake' 'automoc4' 'pkgconfig') +conflicts=('kdemod-tribe-partitionmanager') +groups=('chakra-uninstall') + +_gitroot="git://git.chakra-project.org/chakra/libpartitionmanager.git" +_gitname="libpartitionmanager" + + +# +# build function +# +build() +{ + cd "${srcdir}" + msg "Connecting to GIT server...." + + if [ -d $_gitname ] ; then + cd $_gitname && git pull origin + msg "The local files are updated." + else + git clone $_gitroot + fi + msg "GIT checkout done or server timeout" + msg "Starting make..." + + rm -rf "${srcdir}/$_gitname-build" + + cp -r "${srcdir}/$_gitname" "${srcdir}/$_gitname-build" + cd "${srcdir}/$_gitname-build/" + + cmake . -DCMAKE_INSTALL_PREFIX=${_installprefix} \ + -DCMAKE_BUILD_TYPE=${_build_type} \ + -DCMAKE_SKIP_RPATH=ON \ + -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' || return 1 + + msg "Starting make..." + make || return 1 + + msg "Make successful, installing..." + make DESTDIR=$startdir/pkg install || return 1 + + # remove nasty files + find $startdir/pkg/ -name ".git" -type d -exec rm -fr {} + +} \ No newline at end of file diff --git a/chakra-tribe/PKGBUILD b/chakra-tribe/PKGBUILD new file mode 100644 index 000000000..635bbef20 --- /dev/null +++ b/chakra-tribe/PKGBUILD @@ -0,0 +1,82 @@ +# +# Chakra Packages for Chakra, part of chakra-project.org +# +# maintainer (i686): Phil Miller +# maintainer (x86_64): Manuel Tortosa + +# include global config +source ../_buildscripts/${current_repo}-${_arch}-cfg.conf + + +# +# package info +# +pkgname=chakra-tribe +pkgver=20100521 +_sver=20100404 +pkgrel=1 +pkgdesc="Tribe - Chakra LiveCD Installer" +url="http://git.chakra-project.org/chakra/" +license="GPL" +arch=('i686' 'x86_64') +depends=('kdelibs' 'kdeedu-marble>=4.4.2' 'squashfs-tools' 'arxin' "chakra-libpartitionmanager>=20100403-1") +makedepends=('cmake' 'kdelibs' 'kdeedu-marble>=4.4.2' 'kdebase-workspace') +provides=('tribe') +replaces=('kdemod-tribe-svn' 'kdemod-tribe') +conflicts=('tribe' 'tribe-svn' 'kdemod-partitionmanager' 'kdemod-tribe' 'kdemod-tribe-debug' 'kdemod-tribe-partitionmanager') +options=('!splithdr' 'splitdbg') +source=("tribe-screenshots-${_sver}.tar.gz") +md5sums=('9939bbb9994cf78f9ec4101ab6fa1209') # tribe-screenshots-20100404.tar.gz + +groups=('kdemod-uninstall') +install=tools-tribe.install + +_gitroot="git://git.chakra-project.org/chakra/tribe.git" +_gitname="tribe" + +# +# build function +# +build() +{ + cd "${srcdir}" + msg "Connecting to GIT server...." + + if [ -d $_gitname ] ; then + cd $_gitname && git pull origin newbase + msg "The local files are updated." + else + git clone $_gitroot + cd $_gitname && git checkout newbase + fi + msg "GIT checkout done or server timeout" + + msg "Starting make..." + + rm -rf "${srcdir}/$_gitname-build" + + cp -r "${srcdir}/$_gitname" "${srcdir}/$_gitname-build" + cd "${srcdir}/$_gitname-build/" + + msg "replace screenshots" + cp -vr "${srcdir}/tribe-screenshots-${_sver}/images/" "${srcdir}/$_gitname-build/ui" + + # add pkgver to tribe + sed -i -e "s~source build/from git~Build: ${pkgver}-${pkgrel} (Chakra-Distro)~g" config-tribe.h.cmake + cmake . -DCMAKE_INSTALL_PREFIX=${_installprefix} \ + -DCMAKE_BUILD_TYPE=${_build_type} \ + -DCMAKE_SKIP_RPATH=ON \ + -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' || return 1 + + msg "Starting make..." + make || return 1 + + msg "Make successful, installing..." + make DESTDIR=$startdir/pkg install || return 1 + + # remove nasty files + find $startdir/pkg/ -name ".git" -type d -exec rm -fr {} + + + # remove release announcement + rm $startdir/pkg/usr/share/tribe/config/release_notes.txt +} \ No newline at end of file diff --git a/chakra-tribe/tools-tribe.install b/chakra-tribe/tools-tribe.install new file mode 100644 index 000000000..784a9469e --- /dev/null +++ b/chakra-tribe/tools-tribe.install @@ -0,0 +1,67 @@ +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 + + 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 + + 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 + + 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 $* \ No newline at end of file diff --git a/chakra-tribe/tribe-screenshots-20100404.tar.gz b/chakra-tribe/tribe-screenshots-20100404.tar.gz new file mode 100644 index 000000000..0b06d74ed Binary files /dev/null and b/chakra-tribe/tribe-screenshots-20100404.tar.gz differ diff --git a/support-polkit-kde/PKGBUILD b/support-polkit-kde/PKGBUILD new file mode 100644 index 000000000..7c011c070 --- /dev/null +++ b/support-polkit-kde/PKGBUILD @@ -0,0 +1,44 @@ +# +# KDE SC Packages for Chakra, part of chakra-project.org +# +# maintainer (i686): Phil Miller +# maintainer (x86_64): Manuel Tortosa + +# include global config +source ../_buildscripts/${current_repo}-${_arch}-cfg.conf + +pkgname=polkit-kde +pkgver=0.95.1 +pkgrel=1 +pkgdesc='KDE PolicyKit Authentication Agent' +arch=('i686' 'x86_64') +url='http://www.kde.org' +license=('GPL') +depends=('kdelibs') +makedepends=('cmake' 'automoc4') +source=("ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/${pkgname}-1-${pkgver}.tar.bz2" + 'xdg-path.patch' + 'gcc45.patch') +md5sums=('68e40d2a43335cb5876a1c8bc51c461b' + '84d4873e60c1b628bcbaaf38c7ab2f44' + 'f00a359d35bfbedb47662341d5fd160e') + +build() { + cd ${srcdir}/${pkgname}-1-${pkgver} + patch -p0 -i ${srcdir}/xdg-path.patch || return 1 + patch -p0 -i ${srcdir}/gcc45.patch || return 1 + cd .. + mkdir build + cd build + export XDG_CONFIG_DIRS=/etc/xdg + cmake ../${pkgname}-1-${pkgver} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_SKIP_RPATH=ON + make || return 1 +} + +package() { + cd ${srcdir}/build + make DESTDIR=${pkgdir} install +} diff --git a/support-polkit-kde/gcc45.patch b/support-polkit-kde/gcc45.patch new file mode 100644 index 000000000..478b1660c --- /dev/null +++ b/support-polkit-kde/gcc45.patch @@ -0,0 +1,11 @@ +--- agent/AuthDialog.cpp 2010-04-10 10:13:18.634941750 +0200 ++++ agent/AuthDialog.cpp 2010-04-10 10:13:56.021565836 +0200 +@@ -169,7 +169,7 @@ + foreach(PolkitQt1::Identity *identity, identities) { + // First check to see if the user is valid + qDebug() << "User: " << identity; +- KUser user = KUser::KUser(identity->toString().remove("unix-user:")); ++ KUser user = KUser(identity->toString().remove("unix-user:")); + if (!user.isValid()) { + kWarning() << "User invalid: " << user.loginName(); + continue; diff --git a/support-polkit-kde/xdg-path.patch b/support-polkit-kde/xdg-path.patch new file mode 100644 index 000000000..872523bb3 --- /dev/null +++ b/support-polkit-kde/xdg-path.patch @@ -0,0 +1,13 @@ +--- agent/CMakeLists.txt 2009-12-23 12:31:29.000000000 +0100 ++++ agent/CMakeLists.txt 2010-02-10 21:26:05.183779591 +0100 +@@ -18,8 +18,8 @@ + + install(TARGETS polkit-kde-authentication-agent-1 DESTINATION ${LIBEXEC_INSTALL_DIR}) + +-# Install .desktop file to the XDG_CONFIG_DIRS if exists, to the /etc/xdg/autostart otherwise +-set (DESKTOP_INSTALL_DIR $ENV{XDG_CONFIG_DIRS}) ++# Install .desktop file to the XDG_CONFIG_DIRS/autostart if exists, to the /etc/xdg/autostart otherwise ++set (DESKTOP_INSTALL_DIR $ENV{XDG_CONFIG_DIRS}/autostart) + if (DESKTOP_INSTALL_DIR) + else (DESKTOP_INSTALL_DIR) + set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)