Browse Source

Update kde-servicemenus-flifconversion

master
Pekka Helenius 5 years ago
parent
commit
6c177f1f92
2 changed files with 14 additions and 19 deletions
  1. +8
    -13
      kde-servicemenus-flifconversion/PKGBUILD
  2. +6
    -6
      kde-servicemenus-flifconversion/flif-conversion.sh

+ 8
- 13
kde-servicemenus-flifconversion/PKGBUILD View File

@ -1,25 +1,20 @@
# Maintainer: Sabart Otto - Seberm <seberm[at]gmail[dot].com
# Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com>
pkgname=kde-servicemenus-flifconversion pkgname=kde-servicemenus-flifconversion
pkgver=1 pkgver=1
pkgrel=1 pkgrel=1
pkgdesc="Convert image files to FLIF format with Dolphin or Konqueror (KDE5 Dolphin action)" pkgdesc="Convert image files to FLIF format with Dolphin or Konqueror (KDE5 Dolphin action)"
url=()
arch=('any') arch=('any')
license=('BSD')
install=''
license=('GPL')
source=(flif-conversion.desktop source=(flif-conversion.desktop
flif-conversion.sh) flif-conversion.sh)
depends=('flif' 'dolphin') depends=('flif' 'dolphin')
optdepends=()
conflicts=()
#provides=''
makedepends=()
package() {
mkdir -p $pkgdir/usr/share/kservices5/ServiceMenus/
cp $srcdir/{flif-conversion.desktop,flif-conversion.sh} $pkgdir/usr/share/kservices5/ServiceMenus/
chmod 755 $pkgdir/usr/share/kservices5/ServiceMenus/{flif-conversion.desktop,flif-conversion.sh}
}
md5sums=('148108447aecfb7e7d60ce15a937d140' md5sums=('148108447aecfb7e7d60ce15a937d140'
'b67c8ad9e57580a0e21cc585f8aa93ed') 'b67c8ad9e57580a0e21cc585f8aa93ed')
package() {
mkdir -p $pkgdir/usr/share/kservices5/ServiceMenus/
cp $srcdir/{flif-conversion.desktop,flif-conversion.sh} $pkgdir/usr/share/kservices5/ServiceMenus/
chmod 755 $pkgdir/usr/share/kservices5/ServiceMenus/{flif-conversion.desktop,flif-conversion.sh}
}

+ 6
- 6
kde-servicemenus-flifconversion/flif-conversion.sh View File

@ -1,8 +1,8 @@
#!/bin/bash
#!/bin/env bash
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
OLDFORMAT=$1
NEWFORMAT=$(echo " $OLDFORMAT" | sed 's/\.\w*$/.flif/')
flif -e $OLDFORMAT $NEWFORMAT
shift
done
OLDFORMAT=$1
NEWFORMAT=$(echo " $OLDFORMAT" | sed 's/\.\w*$/.flif/')
flif -e $OLDFORMAT $NEWFORMAT
shift
done

Loading…
Cancel
Save