@ -0,0 +1,25 @@ | |||
# Maintainer: Sabart Otto - Seberm <seberm[at]gmail[dot].com | |||
pkgname=kde-servicemenus-flifconversion | |||
pkgver=1 | |||
pkgrel=1 | |||
pkgdesc="Convert image files to FLIF format with Dolphin or Konqueror (KDE5 Dolphin action)" | |||
url=() | |||
arch=('any') | |||
license=('BSD') | |||
install='' | |||
source=(flif-conversion.desktop | |||
flif-conversion.sh) | |||
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=('bf49ae6ac81e61aebe096fab1f529969' | |||
'b67c8ad9e57580a0e21cc585f8aa93ed') |
@ -0,0 +1,14 @@ | |||
[Desktop Entry] | |||
Type=Service | |||
ServiceTypes=KonqPopupMenu/Plugin | |||
MimeType=image/* | |||
Icon=image | |||
Actions=flif_conversion; | |||
X-KDE-StartupNotify=false | |||
X-KDE-Priority=TopLevel | |||
TryExec=flif | |||
[Desktop Action flif_conversion] | |||
Name=Convert to FLIF format | |||
Icon=image | |||
Exec=/usr/share/kservices5/ServiceMenus/flif-conversion.sh |
@ -0,0 +1,8 @@ | |||
#!/bin/bash | |||
while [ $# -gt 0 ]; do | |||
OLDFORMAT=$1 | |||
NEWFORMAT=$(echo " $OLDFORMAT" | sed 's/\.\w*$/.flif/') | |||
flif -e $OLDFORMAT $NEWFORMAT | |||
shift | |||
done |
@ -0,0 +1,41 @@ | |||
# Maintainer: John Jenkins <twodopeshaggy@gmail.com> | |||
pkgname=qt-flif-plugin-git | |||
_pkgname=qt-flif-plugin | |||
pkgver=r14.c1fff14 | |||
pkgrel=1 | |||
pkgdesc="Free Lossless Image Format" | |||
arch=("i686" "x86_64") | |||
url="https://github.com/FLIF-hub/FLIF" | |||
license=('GPL3') | |||
conflicts=('qt-flif-plugin') | |||
provides=('qt-flif-plugin') | |||
depends=('flif' 'qt5-base') | |||
makedepends=('make') | |||
source=('git+https://github.com/spillerrec/qt-flif-plugin.git' | |||
disable-callback-temporarily.patch) | |||
sha256sums=('SKIP' | |||
'd383d802b04a5f286e11ad53bdaaf0bc20b5392c5c73b29ba7cea1f78a9e2be0') | |||
prepare() { | |||
cd "$srcdir/${_pkgname}" | |||
patch -Np1 -i $srcdir/disable-callback-temporarily.patch | |||
} | |||
pkgver() { | |||
cd "$srcdir/${_pkgname}" | |||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |||
} | |||
build() { | |||
cd "$srcdir/${_pkgname}" | |||
qmake | |||
make | |||
} | |||
package() { | |||
cd "$srcdir/${_pkgname}" | |||
mkdir -p "${pkgdir}/usr/lib/qt/plugins/imageformats/" | |||
install -m755 "$srcdir/${_pkgname}/libflif.so" "${pkgdir}/usr/lib/qt/plugins/imageformats/" | |||
} |
@ -0,0 +1,16 @@ | |||
See the following issue: https://github.com/spillerrec/qt-flif-plugin/issues/5 | |||
This patch is not a real fix. | |||
--- a/src/Flif++.hpp | |||
+++ b/src/Flif++.hpp | |||
@@ -78,8 +78,8 @@ | |||
void setResize( uint32_t width, uint32_t height ) | |||
{ flif_decoder_set_resize( d, width, height ); } | |||
- void setCallback( uint32_t (*callback)(int32_t,int64_t) ) | |||
- { flif_decoder_set_callback( d, callback ); } | |||
+// void setCallback( uint32_t (*callback)(int32_t,int64_t) ) | |||
+// { flif_decoder_set_callback( d, callback ); } | |||
void setFirstCallbackQuality( int32_t quality ) | |||
{ flif_decoder_set_first_callback_quality( d, quality ); } |