@ -1,20 +1,23 @@ | |||
# Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com> | |||
pkgname=kde-servicemenus-multimediatools | |||
pkgver=1 | |||
pkgrel=1 | |||
pkgdesc="A KDE service menus for media conversions (KDE5 Dolphin action)" | |||
arch=('any') | |||
url="https://store.kde.org/p/998464" | |||
license=('GPL') | |||
depends=('ffmpeg' 'dolphin' 'kdialog') | |||
source=('ffmpeg-fileconversion-audio.sh' | |||
'ffmpeg-fileconversion-video.sh' | |||
'ffmpeg-fileconversion.desktop') | |||
source=( | |||
'ffmpeg-fileconversion-audio.sh' | |||
'ffmpeg-fileconversion-video.sh' | |||
'ffmpeg-fileconversion.desktop' | |||
) | |||
md5sums=('badf342f35cf21f15131859b49dd9308' | |||
'ab997eca4ca58a8b398b352019a45d18' | |||
'045a6657a8e83e1e1a909f6d0f2f8cb0') | |||
package() { | |||
mkdir -p $pkgdir/usr/share/kservices5/ServiceMenus/ | |||
cp $srcdir/{ffmpeg-fileconversion.desktop,ffmpeg-fileconversion-audio.sh,ffmpeg-fileconversion-video.sh} $pkgdir/usr/share/kservices5/ServiceMenus/ | |||
chmod 755 $pkgdir/usr/share/kservices5/ServiceMenus/{ffmpeg-fileconversion.desktop,ffmpeg-fileconversion-audio.sh,ffmpeg-fileconversion-video.sh} | |||
mkdir -p ${pkgdir}/usr/share/kservices5/ServiceMenus/ | |||
cp ${srcdir}/{ffmpeg-fileconversion.desktop,ffmpeg-fileconversion-audio.sh,ffmpeg-fileconversion-video.sh} ${pkgdir}/usr/share/kservices5/ServiceMenus/ | |||
chmod 755 ${pkgdir}/usr/share/kservices5/ServiceMenus/{ffmpeg-fileconversion.desktop,ffmpeg-fileconversion-audio.sh,ffmpeg-fileconversion-video.sh} | |||
} |
@ -1,25 +1,22 @@ | |||
# Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com> | |||
pkgname=kde-servicemenus-qnapi | |||
pkgver=1 | |||
pkgrel=1 | |||
pkgdesc="Download subtitles for a video file using QNapi (KDE5 Dolphin action)" | |||
url="" | |||
arch=('any') | |||
license=('BSD') | |||
install='' | |||
license=('GPL') | |||
depends=('dolphin' 'konsole' 'qnapi') | |||
source=( | |||
qnapi-downloadsub.desktop | |||
qnapi-downloadsub.sh | |||
'qnapi-downloadsub.desktop' | |||
'qnapi-downloadsub.sh' | |||
) | |||
depends=('dolphin' 'konsole' 'qnapi') | |||
optdepends=() | |||
conflicts=() | |||
#provides='' | |||
makedepends=() | |||
md5sums=('a5a6d1c01a89239695de7d8c29c1c470' | |||
'1d58fafdf1f8858a65214d64b3056bbf') | |||
package() { | |||
mkdir -p $pkgdir/usr/share/kservices5/ServiceMenus/ | |||
cp $srcdir/{qnapi-downloadsub.desktop,qnapi-downloadsub.sh} $pkgdir/usr/share/kservices5/ServiceMenus/ | |||
chmod 755 $pkgdir/usr/share/kservices5/ServiceMenus/{qnapi-downloadsub.desktop,qnapi-downloadsub.sh} | |||
mkdir -p ${pkgdir}/usr/share/kservices5/ServiceMenus/ | |||
cp ${srcdir}/{qnapi-downloadsub.desktop,qnapi-downloadsub.sh} ${pkgdir}/usr/share/kservices5/ServiceMenus/ | |||
chmod 755 ${pkgdir}/usr/share/kservices5/ServiceMenus/{qnapi-downloadsub.desktop,qnapi-downloadsub.sh} | |||
} | |||
md5sums=('a5a6d1c01a89239695de7d8c29c1c470' | |||
'1d58fafdf1f8858a65214d64b3056bbf') | |||
@ -1,7 +1,7 @@ | |||
#!/bin/bash | |||
#!/bin/env bash | |||
while [ $# -gt 0 ]; do | |||
VIDEO=$1 | |||
qnapi -c "$VIDEO" | |||
shift | |||
VIDEO=$1 | |||
qnapi -c "$VIDEO" | |||
shift | |||
done |
@ -1,27 +1,24 @@ | |||
# Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com> | |||
pkgname=kde-servicemenus-searchactions | |||
pkgver=1 | |||
pkgrel=1 | |||
pkgdesc="Search strings inside files using Dolphin or Konqueror (KDE5 Dolphin action)" | |||
url="" | |||
arch=('any') | |||
license=('BSD') | |||
install='' | |||
license=('GPL') | |||
source=( | |||
searchinside.desktop | |||
searchinside.sh | |||
searchinside-casesensitive.sh | |||
'searchinside.desktop' | |||
'searchinside.sh' | |||
'searchinside-casesensitive.sh' | |||
) | |||
md5sums=('97e0476998ae35c034316e07623463b1' | |||
'5466d8b1b6334ea5a7ce9b5e586545af' | |||
'e78a0246503d95489730ec71bb998a97') | |||
depends=('grep' 'findutils' 'dolphin' 'konsole') | |||
optdepends=() | |||
conflicts=() | |||
#provides='' | |||
makedepends=() | |||
package() { | |||
mkdir -p $pkgdir/usr/share/kservices5/ServiceMenus/ | |||
cp $srcdir/{searchinside.desktop,searchinside.sh,searchinside-casesensitive.sh} $pkgdir/usr/share/kservices5/ServiceMenus/ | |||
chmod 755 $pkgdir/usr/share/kservices5/ServiceMenus/{searchinside.desktop,searchinside.sh,searchinside-casesensitive.sh} | |||
mkdir -p $pkgdir/usr/share/kservices5/ServiceMenus/ | |||
cp $srcdir/{searchinside.desktop,searchinside.sh,searchinside-casesensitive.sh} $pkgdir/usr/share/kservices5/ServiceMenus/ | |||
chmod 755 $pkgdir/usr/share/kservices5/ServiceMenus/{searchinside.desktop,searchinside.sh,searchinside-casesensitive.sh} | |||
} | |||
md5sums=('97e0476998ae35c034316e07623463b1' | |||
'5466d8b1b6334ea5a7ce9b5e586545af' | |||
'e78a0246503d95489730ec71bb998a97') |
@ -1,10 +1,9 @@ | |||
#!/bin/bash | |||
#!/bin/env bash | |||
THISFOLDER=$(pwd) | |||
echo -e "\e[1mSearch inside files -- [case sensitive]\e[0m" | |||
echo -e "\nCurrent search folder: $THISFOLDER\n" | |||
echo -e "\nCurrent search folder: $PWD\n" | |||
read -r -p "Enter string to search: " STRING | |||
echo -e "\nFiles containing the string \e[93m$STRING\e[0m in \e[94m$THISFOLDER/\e[0m and subfolders are:\n\e[32m" | |||
grep -Rls $STRING $THISFOLDER | |||
echo -e "\nFiles containing the string \e[93m$STRING\e[0m in \e[94m$PWD/\e[0m and subfolders are:\n\e[32m" | |||
grep -Rls $STRING $PWD | |||
echo -e "\e[91m\nSearch finished\e[0m" |
@ -1,10 +1,9 @@ | |||
#!/bin/bash | |||
#!/bin/env bash | |||
THISFOLDER=$(pwd) | |||
echo -e "\e[1mSearch inside files -- [ignore case]\e[0m" | |||
echo -e "\nCurrent search folder: $THISFOLDER\n" | |||
echo -e "\nCurrent search folder: $PWD\n" | |||
read -r -p "Enter string to search: " STRING | |||
echo -e "\nFiles containing the string \e[93m$STRING\e[0m in \e[94m$THISFOLDER/\e[0m and subfolders are:\n\e[32m" | |||
grep -Rils $STRING $THISFOLDER | |||
echo -e "\nFiles containing the string \e[93m$STRING\e[0m in \e[94m$PWD/\e[0m and subfolders are:\n\e[32m" | |||
grep -Rils $STRING $PWD | |||
echo -e "\e[91m\nSearch finished\e[0m" |
@ -1,30 +1,22 @@ | |||
# Maintainer: Sabart Otto - Seberm <seberm[at]gmail[dot].com | |||
# Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com> | |||
pkgname=kde-servicemenus-unlockpdf | |||
pkgver=1 | |||
pkgrel=1 | |||
pkgdesc="Unlock PDF files using Dolphin or Konqueror (KDE5 Dolphin action)" | |||
url=() | |||
arch=('any') | |||
license=('BSD') | |||
install='' | |||
source=(pdfunlock.patch) | |||
license=('GPL') | |||
depends=('ghostscript' 'dolphin') | |||
optdepends=() | |||
conflicts=() | |||
#provides='' | |||
makedepends=() | |||
prepare() { | |||
mkdir $pkgname-$pkgver | |||
cd $srcdir/$pkgname-$pkgver | |||
touch pdfunlock.sh pdfunlock.desktop | |||
patch -Np1 -i "$srcdir/pdfunlock.patch" | |||
} | |||
source=( | |||
'pdfunlock.desktop' | |||
'pdfunlock.sh' | |||
) | |||
md5sums=('44ee294b4b8c640d00883f482646fce8' | |||
'c046c519ca61d11b2cf4822c3ea371c8') | |||
package() { | |||
mkdir -p $pkgdir/usr/share/kservices5/ServiceMenus/ | |||
cp $srcdir/$pkgname-$pkgver/{pdfunlock.desktop,pdfunlock.sh} $pkgdir/usr/share/kservices5/ServiceMenus/ | |||
chmod 755 $pkgdir/usr/share/kservices5/ServiceMenus/{pdfunlock.desktop,pdfunlock.sh} | |||
mkdir -p ${pkgdir}/usr/share/kservices5/ServiceMenus/ | |||
cp ${srcdir}/{pdfunlock.desktop,pdfunlock.sh} ${pkgdir}/usr/share/kservices5/ServiceMenus/ | |||
chmod 755 ${pkgdir}/usr/share/kservices5/ServiceMenus/{pdfunlock.desktop,pdfunlock.sh} | |||
} | |||
md5sums=('a1880f1e3b2f0d4b8f90c34a2ea09cef') | |||
@ -0,0 +1,15 @@ | |||
[Desktop Entry] | |||
Type=Service | |||
ServiceTypes=KonqPopupMenu/Plugin | |||
MimeType=application/pdf | |||
Icon=application-pdf | |||
Actions=pdfunlock; | |||
X-KDE-StartupNotify=false | |||
X-KDE-Priority=TopLevel | |||
TryExec=gs | |||
[Desktop Action pdfunlock] | |||
Name=Unlock this PDF file | |||
Name[fi]=Poista PDF-tiedoston suojaukset | |||
Icon=application-pdf | |||
Exec=/usr/share/kservices5/ServiceMenus/pdfunlock.sh |
@ -1,31 +0,0 @@ | |||
--- a/pdfunlock.sh | |||
+++ b/pdfunlock.sh | |||
@@ -0,0 +1,9 @@ | |||
+#!/bin/bash | |||
+ | |||
+while [ $# -gt 0 ]; do | |||
+ ENCRYP=$1 | |||
+ DECRYP=$(echo "$ENCRYP" | sed 's/\.\w*$/_unlocked.pdf/') | |||
+ #qpdf --decrypt "$ENCRYP" "$DECRYP" | |||
+ gs -sPDFPassword=$PASS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=%stdout% -c .setpdfwrite -f "$ENCRYP" > "$DECRYP" | |||
+ shift | |||
+done | |||
\ No newline at end of file | |||
--- a/pdfunlock.desktop | |||
+++ b/pdfunlock.desktop | |||
@@ -0,0 +1,15 @@ | |||
+[Desktop Entry] | |||
+Type=Service | |||
+ServiceTypes=KonqPopupMenu/Plugin | |||
+MimeType=application/pdf | |||
+Icon=application-pdf | |||
+Actions=pdfunlock; | |||
+X-KDE-StartupNotify=false | |||
+X-KDE-Priority=TopLevel | |||
+TryExec=gs | |||
+ | |||
+[Desktop Action pdfunlock] | |||
+Name=Unlock this PDF file | |||
+Name[fi]=Poista PDF-tiedoston suojaukset | |||
+Icon=application-pdf | |||
+Exec=/usr/share/kservices5/ServiceMenus/pdfunlock.sh |
@ -0,0 +1,9 @@ | |||
#!/bin/env bash | |||
while [ $# -gt 0 ]; do | |||
ENCRYP=$1 | |||
DECRYP=$(echo "$ENCRYP" | sed 's/\.\w*$/_unlocked.pdf/') | |||
#qpdf --decrypt "$ENCRYP" "$DECRYP" | |||
gs -sPDFPassword=$PASS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=%stdout% -c .setpdfwrite -f "$ENCRYP" > "$DECRYP" | |||
shift | |||
done |
@ -1,13 +1,13 @@ | |||
#!/bin/bash | |||
#!/bin/env bash | |||
NEWSIZE=$(( 1024* $(kdialog --inputbox "Please enter new size in gigabytes (GB)"))); | |||
while [ $# -gt 0 ]; do | |||
VBOXMACHINE=$1 | |||
VBoxManage modifyhd "$VBOXMACHINE" --resize $NEWSIZE | |||
shift | |||
VBOXMACHINE=$1 | |||
VBoxManage modifyhd "$VBOXMACHINE" --resize $NEWSIZE | |||
shift | |||
done | |||
if [[ "$NEWSIZE" == ?(-)+([0-9]) ]]; then | |||
kdialog --msgbox "Done. Use a live-cd to extend the partition." --title "Resize VirtualBox Machine" | |||
kdialog --msgbox "Done. Use a live-cd to extend the partition." --title "Resize VirtualBox Machine" | |||
fi |
@ -1,38 +1,41 @@ | |||
# Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com> | |||
# Contributor: Ismael Barros (RazZziel) <razielmine@gmail.com> | |||
# Maintainer: Luigi Ranghetti <ggranga@gmail.com> | |||
# Contributor: Luigi Ranghetti <ggranga@gmail.com> | |||
pkgname=pano2vr | |||
pkgver=4.5.2 | |||
_pkgver2=`echo $pkgver | tr '.' '_'` | |||
pkgver=6.0.4a | |||
_pkgver2=`echo ${pkgver} | tr '.' '_'` | |||
pkgrel=1 | |||
pkgdesc="Converts panoramic images into QuickTime VR or Macromedia Flash formats." | |||
url="http://gardengnomesoftware.com/pano2vr.php" | |||
license=('Pano2VR') | |||
arch=(x86_64) | |||
depends=('libgl' 'qt4' 'qtwebkit') | |||
source=(http://gardengnomesoftware.com/download/${pkgname}/${pkgname}_linux64_${_pkgver2}.tar.gz | |||
'changedir.patch' | |||
'pano2vr.desktop') | |||
md5sums=('09f6bd0157f07c9ea41edf86b00066df' | |||
'0fd71d2d76982a5146dd23fce94ec942' | |||
arch=('x86_64') | |||
depends=('libgl' 'qt5-base') | |||
source=( | |||
"https://ggnome.com/download/${pkgname}/${pkgname}_linux64_${_pkgver2}.tar.gz" | |||
"changedir.patch" | |||
"pano2vr.desktop" | |||
) | |||
md5sums=('7684d9789f3d7cab725151da1ac1450c' | |||
'188ecfd8e33f19a244bb7ba0a71ec411' | |||
'55617407038824cbc0fbeb01bff2ea0c') | |||
prepare() { | |||
cd "$srcdir" | |||
patch -p1 -i "$srcdir/changedir.patch" | |||
cd "${srcdir}" | |||
patch -p1 -i "${srcdir}/changedir.patch" | |||
} | |||
package() { | |||
install -d $pkgdir/opt/ | |||
cp -r $srcdir $pkgdir/opt/ | |||
mv $pkgdir/opt/src $pkgdir/opt/$pkgname | |||
install -d ${pkgdir}/opt/ | |||
cp -r ${srcdir} ${pkgdir}/opt/ | |||
mv ${pkgdir}/opt/src ${pkgdir}/opt/${pkgname} | |||
install -d $pkgdir/usr/local/bin/ | |||
ln -s $pkgdir/opt/$pkgname/$pkgname.sh $pkgdir/usr/local/bin/$pkgname | |||
install -d ${pkgdir}/usr/local/bin/ | |||
ln -s ${pkgdir}/opt/${pkgname}/${pkgname}.sh ${pkgdir}/usr/local/bin/${pkgname} | |||
install -d $pkgdir/usr/share/licenses/common/Pano2VR/ | |||
install -m644 $srcdir/license.txt $pkgdir/usr/share/licenses/common/Pano2VR/ | |||
install -d ${pkgdir}/usr/share/licenses/common/Pano2VR/ | |||
install -m644 ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/common/Pano2VR/ | |||
install -D -m644 $srcdir/${pkgname}_icon.png $pkgdir/usr/share/pixmaps/${pkgname}.png | |||
install -D -m644 $srcdir/${pkgname}.desktop $pkgdir/usr/share/applications/${pkgname}.desktop | |||
install -D -m644 ${srcdir}/${pkgname}_icon.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png | |||
install -D -m644 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop | |||
} |
@ -1,11 +1,10 @@ | |||
--- a/pano2vr.sh 2014-07-28 11:27:33.911207314 +0200 | |||
+++ b/pano2vr.sh 2014-07-28 11:33:30.961219971 +0200 | |||
--- a/pano2vr.sh | |||
+++ b/pano2vr.sh | |||
@@ -1,6 +1,6 @@ | |||
#!/bin/sh | |||
appname=pano2vr | |||
-dirname="`dirname $0`" | |||
+dirname="/opt/$appname" | |||
unset QT_PLUGIN_PATH | |||
export LD_LIBRARY_PATH="$dirname/qtlib" | |||
"$dirname/bin/$appname" "$@" | |||
\ No newline at end of file | |||
-dirname="$( cd "$(dirname "$0")" ; pwd -P )" | |||
+dirname="$( cd "/opt/$appname" ; pwd -P )" | |||
cd $dirname | |||
# Set the absolute path for the Qt library | |||
# I know this is a not a nice solution, but this was the only way I got the webview working |