Advertisement
Guest User

PKGBUILD cewe-fotobuch 5.0.6, french version

a guest
Mar 8th, 2014
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.06 KB | None | 0 0
  1. # Contributor: Jozef Riha <jose1711 at gmail dot com>
  2. # Updated by Manuel Conzelmann, changed to non-branded software
  3.  
  4. pkgname=cewe-fotobuch
  5. pkgver=5.0.6
  6. pkgrel=1
  7. pkgdesc="an offline client for creating photobooks, uploading and ordering them at cewe.de"
  8. url="http://www.cewe.de/"
  9. license=("custom:eula")
  10. depends=('libx11' 'libjpeg' 'curl' 'wget')
  11. arch=('i686' 'x86_64')
  12. source=("http://dls.photoprintit.com/download/Data/14227/hps/setup_Mon_LIVRE_PHOTO_CEWE.tgz"
  13. "cewe-fotobuch.desktop")
  14. install=cewe-fotobuch.install
  15. md5sums=('50a388ee23b486110ce2908ecbda25c0' '481ac82e95881d2878da3973d29095f6')
  16.  
  17. _KEYACCID=16523
  18. _CLIENTID=18
  19.  
  20.  
  21. build() {
  22.         cd $srcdir
  23.         mkdir -p $pkgdir/usr/{share/$pkgname,bin}
  24. #       # download list of links
  25. #       wget -O url_list.txt "http://dls.photoprintit.de/download/Data/${_KEYACCID}/hps/${_CLIENTID}-index-$pkgver.txt" || return 1
  26. #       echo "Downloading and extracting files.."
  27. #       for url in $(awk -F\; '{print $1}' url_list.txt|egrep -v "dll|cewe|setup_Mueller|setup_Fotostar|setup_Meine_CeWe_Fotowelt_de|setup_Moj_CeWe"); do
  28. #               wget "http://dls.photoprintit.de/$url" || return 1
  29. #               unzip -o -d $srcdir $(basename $url) || return 1
  30. #       done
  31.         ./install.pl --installDir=$pkgdir/usr/share/cewe-fotobuch --workingDir=$srcdir -k -v
  32. #       # copy EULA
  33. #       install -D -m644 $srcdir/EULA.txt $pkgdir/usr/share/$pkgname/EULA.txt || return 1
  34.         # create startup script
  35.         (echo "#!/bin/bash
  36. cd /usr/share/$pkgname
  37. ./cewe-fotobuch \"\$@\"") > $pkgdir/usr/bin/cewe-fotobuch
  38.         chmod 755 $pkgdir/usr/bin/cewe-fotobuch
  39.         # utf-8 and space in executable filenames is generally a bad idea
  40.         cd $pkgdir/usr/share/$pkgname
  41.         mv "Mon LIVRE PHOTO CEWE" "cewe-fotobuch"
  42.         # create desktop shortcut
  43.         install -D -m644 $pkgdir/usr/share/$pkgname/Resources/keyaccount/32.xpm $pkgdir/usr/share/pixmaps/cewe-fotobuch.xpm && \
  44.         install -D -m644 $srcdir/cewe-fotobuch.desktop $pkgdir/usr/share/applications/cewe-fotobuch.desktop || return 1
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement