diff options
author | oli | 2015-06-12 21:55:28 +0200 |
---|---|---|
committer | oli | 2015-06-12 21:55:28 +0200 |
commit | 93c68b64a5e88245863bc674554bca921a52f711 (patch) | |
tree | cadb81d2ae77888c2a97a6aace4ac7d3bf24ba71 | |
download | aur-93c68b64a5e88245863bc674554bca921a52f711.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 71 | ||||
-rw-r--r-- | fotosvet.desktop | 7 | ||||
-rw-r--r-- | mullerfoto.desktop | 8 | ||||
-rw-r--r-- | mullerfoto.install | 26 |
5 files changed, 133 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8fb012fa0e17 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = mullerfoto-fotostar_cz + pkgdesc = an offline client for uploading and ordering photos at fotolab.cz (aka FotoStar Client) + pkgver = 4.6.8 + pkgrel = 2 + url = http://foto-sberna.fotolab.cz/objednat-foto-komfortni-software-zdarma.html + install = mullerfoto.install + arch = i686 + license = custom:eula + depends = libx11 + depends = curl + conflicts = mullerfoto-fotostar_de + conflicts = mullerfoto-fotostar_sk + source = http://dls.photoprintit.de/download/Data/4860/hps/setup_Fotolab_Fotosvet_4.tgz + source = mullerfoto.desktop + source = fotosvet.desktop + md5sums = a7a70e128056fa8ebd0a6a6104488d3b + md5sums = de6d7b4e78b7e9ff17dad0631e373e9e + md5sums = 442801b82feee66d61aa796d573b3d82 + +pkgname = mullerfoto-fotostar_cz + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..236d2b4eadec --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,71 @@ +# Maintainer: Jozef Riha <jose1711 at gmail dot com> + +pkgname=mullerfoto-fotostar_cz +pkgver=4.6.8 +pkgrel=2 +pkgdesc="an offline client for uploading and ordering photos at fotolab.cz (aka FotoStar Client)" +url="http://foto-sberna.fotolab.cz/objednat-foto-komfortni-software-zdarma.html" +license=("custom:eula") +depends=('libx11' 'curl') +arch=('i686') +source=("http://dls.photoprintit.de/download/Data/4860/hps/setup_Fotolab_Fotosvet_4.tgz" "mullerfoto.desktop" "fotosvet.desktop") +install=('mullerfoto.install') +conflicts=('mullerfoto-fotostar_de' 'mullerfoto-fotostar_sk') +md5sums=('a7a70e128056fa8ebd0a6a6104488d3b' + 'de6d7b4e78b7e9ff17dad0631e373e9e' + '442801b82feee66d61aa796d573b3d82') + +build() { + cd $srcdir + mkdir -p $pkgdir/usr/{share/$pkgname,bin} + KEYACCID=4860 + CLIENTID=38 + HPS_VER=$pkgver + # download list of links + wget -O url_list.txt "http://dls.photoprintit.de/download/Data/${KEYACCID}/hps/${CLIENTID}-index-${HPS_VER}.txt" + echo "Downloading and extracting files.." + for url in $(awk -F\; '{print $1}' url_list.txt|egrep -v "dll|cewe|setup_Mueller|setup_Fotostar|setup_bol_de|setup_Moj_CeWe"); do + wget "http://dls.photoprintit.de/$url" + unzip -d $pkgdir/usr/share/$pkgname $(basename $url) + done + echo "Creating symlinks.." + # weird stuff, but this is what the installation script is doing also + cd $pkgdir/usr/share/$pkgname + version_array=() + rm {libCWImageLoader,libCWGUIWidgets}.so{,.0,.0.1} libexpat.so{,.1} + for source in *.so*; do + libversion=$(echo $source|sed -n 's/\(.*\).so\.\(.*\)/\2/p') + libname=$(echo $source|sed -n 's/\(.*\.so\)\..*/\1/p'); + IFS=$'.' read -a version_array <<< "${libversion}" + unset IFS + n=${#version_array[*]} + target=() + for ((i=0;i<n-1;i++)); do + target=$(echo -n "$target"."${version_array[i]}") + ln -s "$source" "${libname}${target}" || true + done + done + # non-ascii characters in executable filenames is generally a bad idea + mv "CEWE prezentace fotografií" "MullerFoto" + # make files executable + chmod 0755 ./MullerFoto + chmod 0755 ./assistant + chmod 0755 ./Fotolab\ Fotosvet\ 4 + chmod 0755 ./facedetection + # copy EULA + install -D -m644 $srcdir/EULA.txt $pkgdir/usr/share/$pkgname/EULA.txt + # create startup script + (echo "#!/bin/bash +cd /usr/share/$pkgname +./Fotolab\ Fotosvet\ 4 \"\$@\"") > $pkgdir/usr/bin/Fotosvet4 + (echo "#!/bin/bash +cd /usr/share/$pkgname +./MullerFoto \"\$@\"") > $pkgdir/usr/bin/MullerFoto + chmod 0755 $pkgdir/usr/bin/MullerFoto + chmod 0755 $pkgdir/usr/bin/Fotosvet4 + # create desktop shortcut + install -D -m644 Resources/keyaccount/32.xpm $pkgdir/usr/share/pixmaps/mullerfoto.xpm + install -D -m644 Resources/keyaccount/fotoschau.xpm $pkgdir/usr/share/pixmaps/fotoschau.xpm + install -D -m644 $srcdir/mullerfoto.desktop $pkgdir/usr/share/applications/mullerfoto.desktop + install -D -m644 $srcdir/fotosvet.desktop $pkgdir/usr/share/applications/fotosvet.desktop +} diff --git a/fotosvet.desktop b/fotosvet.desktop new file mode 100644 index 000000000000..78a3ddeea065 --- /dev/null +++ b/fotosvet.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Name=CeWe FotoLab Fotosvet4 +Comment=Make an order at FotoLab using this offline client +Exec=Fotosvet4 +Icon=mullerfoto.xpm +Categories=Graphics;Photography; diff --git a/mullerfoto.desktop b/mullerfoto.desktop new file mode 100644 index 000000000000..7a69725c68b5 --- /dev/null +++ b/mullerfoto.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=CeWe Photoshow +Name[cs]=CeWe prezentace fotografií +Comment=View/edit your photos before uploading them to FotoStar +Exec=MullerFoto +Icon=fotoschau.xpm +Categories=Graphics;Photography; diff --git a/mullerfoto.install b/mullerfoto.install new file mode 100644 index 000000000000..bd9e613a8957 --- /dev/null +++ b/mullerfoto.install @@ -0,0 +1,26 @@ +post_install() { + echo '--------------------------------------------------' + echo 'You *MUST* read and agree to the license stored in' + echo '/usr/share/mullerfoto-fotostar_cz/EULA.txt before' + echo 'you start using it' + echo '--------------------------------------------------' + + chgrp camera /usr/share/mullerfoto-fotostar_cz + chmod 775 /usr/share/mullerfoto-fotostar_cz + + echo "Add user to group camera to be able to use FotoStar." + /bin/true +} + +post_upgrade() { +/bin/true +} + +pre_remove() { +/bin/true +} + +op=$1 +shift + +$op "$@" |