Commit f426acf3 authored by totte's avatar totte
Browse files

chakra-common: Include chakra-paste and chakra-helper

parent 142a1fd3
......@@ -9,8 +9,9 @@ arch=('x86_64')
pkgver=${_kdever}
pkgrel=1
pkgdesc="Common configuration files, scripts and artwork"
url="http://www.kde.org"
license=('GPL')
url="http://www.chakra-project.org"
license=('GPL'
'BSD')
options=('!debug'
'!header'
'strip')
......@@ -21,36 +22,44 @@ depends=("${_qtpkg}>=${_qtver}"
'pinentry'
'openssh'
'bash>=4.2'
'glibc>=2.15')
'glibc>=2.15'
'python3'
'python3-requests'
'python3-appdirs')
provides=('kde-common'
'tcp_wrappers')
replaces=('kde-common')
conflicts=('kde-common')
'tcp_wrappers'
'chakra-paste')
replaces=('kde-common'
'chakra-paste')
conflicts=('kde-common'
'chakra-paste')
install=chakra-common.install
source=(http://www.kde-apps.org/CONTENT/content-files/48411-rootactions_servicemenu_2.4.10.tar.gz
servicemenu-copy-path.desktop
http://www.kde-apps.org/CONTENT/content-files/102825-compressattach.desktop.bz2
servicemenu-rootactions.patch
Chakra-Bugs.desktop
Chakra-ChangeLog.desktop
Chakra-Code.desktop
Chakra-Documentation.desktop
Chakra-Donate.desktop
Chakra-Forum.desktop
Chakra-Homepage.desktop
Chakra.directory
chakra-config-updater.sh
chakra-update-icons.sh
chakra-update-mime.sh
chakra-update-sycoca.sh
chakra-update-user-sycoca.sh
chakra-sysinfo.sh
chakra-backup.sh
Chakra-backup.desktop
updates.conf
chakra-icons.tar.gz
agent-startup.sh
agent-shutdown.sh)
source=('http://www.kde-apps.org/CONTENT/content-files/48411-rootactions_servicemenu_2.4.10.tar.gz'
'servicemenu-copy-path.desktop'
'http://www.kde-apps.org/CONTENT/content-files/102825-compressattach.desktop.bz2'
'servicemenu-rootactions.patch'
'Chakra-Bugs.desktop'
'Chakra-ChangeLog.desktop'
'Chakra-Code.desktop'
'Chakra-Documentation.desktop'
'Chakra-Donate.desktop'
'Chakra-Forum.desktop'
'Chakra-Homepage.desktop'
'Chakra.directory'
'chakra-config-updater.sh'
'chakra-update-icons.sh'
'chakra-update-mime.sh'
'chakra-update-sycoca.sh'
'chakra-update-user-sycoca.sh'
'chakra-sysinfo.sh'
'chakra-backup.sh'
'Chakra-backup.desktop'
'updates.conf'
'chakra-icons.tar.gz'
'agent-startup.sh'
'agent-shutdown.sh'
'chakra-helper.sh'
'https://gitorious.org/chakra-paste/chakra-paste/archive/05f0a884a4de1460309ee95d678eb034c4c964b5.tar.gz')
sha256sums=('92978c921647a2fa00d82c0bde59ebd15f7c805e87e11e1f9c4789bde3fbd8b5'
'2bf00472d9b50bc9befcf9cdca92a1a6d31690287de330e6390ca65c17aba02e'
'ca7d66aec559282581dd577746dff86b9b4127ae871ee2788b74ab66f99edbfa'
......@@ -74,7 +83,9 @@ sha256sums=('92978c921647a2fa00d82c0bde59ebd15f7c805e87e11e1f9c4789bde3fbd8b5'
'da64dc6bc248703da7eb8ad38af73b87c9836b3b35cf0529e988a69ee5922e8b'
'b20160225a990513ae58027b7e70bb958253da881be02f296e54e9ccca09b348'
'e4a44b4ed3130d1fa309a6b5c829461ec09ec595c31cd4a8715d79942fe8f0ef'
'530ecdbe32c8f33991cd6c2ccf29212f28bb4462d1844f5acba335b5984a9347')
'530ecdbe32c8f33991cd6c2ccf29212f28bb4462d1844f5acba335b5984a9347'
'4dd54e7c635d00a6e0374f73d93dc826379a21aa53de1361e1631763a6da8273'
'780c9c40d0884b2c145b95b8a394bf0b90c6696fcef250c1d01a66985237e43a')
package() {
# Install scripts for gpg/ssh-agent
......@@ -135,4 +146,10 @@ package() {
install -m755 -d ${pkgdir}/usr/share/pixmaps
install -m644 Chakra*.desktop ${pkgdir}/usr/share/applications/kde4
install -m644 Chakra.directory ${pkgdir}/usr/share/desktop-directories/
# chakra-paste
install -D -m777 chakra-paste "${pkgdir}/usr/bin/chakra-paste"
# chakra-helper
install -D -m777 chakra-helper.sh "${pkgdir}/usr/bin/chakra-helper"
}
#!/bin/bash
# chakra-helper v1.1
# ---------------------------------------------------------------------------- #
# "THE BEER-WARE LICENSE" (Revision 42): #
# konwhald@hotmail.fr wrote this file. As long as you retain this notice you #
# can do whatever you want with this stuff. If we meet some day, and you think #
# this stuff is worth it, you can buy me a beer in return. Konwhald #
# ---------------------------------------------------------------------------- #
TITLE="Chakra Helper"
TMPFILE=$(mktemp)
LC_ALL=C
PACMANCONF=/etc/pacman.conf
ICON="/usr/share/icons/oxygen/scalable/places/start-here-branding.svg"
main() {
COMMAND="$( \
kdialog \
--title "$TITLE" \
--inputbox "Command to run?" "" \
--icon "$ICON" \
)"
echo "» uname -a" >> $TMPFILE
uname -a >> $TMPFILE
echo "================================================================" >> $TMPFILE
echo "» grep -v '^$' $PACMANCONF | grep -v '^ *#'" >> $TMPFILE
grep -v '^$' $PACMANCONF | grep -v '^ *#' >> $TMPFILE
echo "================================================================" >> $TMPFILE
echo $COMMAND" >> $TMPFILE
eval $COMMAND >> $TMPFILE 2>> $TMPFILE
if [ -x /usr/bin/chakra-paste ]; then
URL="$(chakra-paste "$TMPFILE")"
kdialog \
--title "$TITLE" \
--msgbox "The report is available at: \n \
$URL \n\n \
Local copy: \n \
$TMPFILE \n\n \
Search for similar issues on the web. If you don't find any, \n \
create a new topic on the forum with a clear and detailed \n \
explanation of what you are trying to do, what actually happens \n \
and what you expected to happen along with this URL." \
--icon "$ICON"
echo "The report is available at: $URL (local copy: $TMPFILE)."
else
kdialog \
--title "$TITLE" \
--error "\"chakra-paste\" is not installed on your system, \n\n \
paste the report on paste.chakra-project.org. \n \
Search for similar issues on the web. If you don't find any, \n \
create a new topic on the forum with a clear and detailed \n \
explanation of what you are trying to do, what actually happens \n \
and what you expected to happen along with this URL." \
--icon "$ICON"
kdialog \
--title "$TITLE" \
--textbox "$TMPFILE" 590 330 \
--icon "$ICON"
fi
}
if [ "$1" = --help ] || [ "$1" = -h ]; then
echo "chakra-helper, version 1.1"
echo "Generate a report for support purposes."
echo "Original author: Konwhald <konwhald@hotmail.fr>"
else
main $*
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment