1 # Maintainer: yugrotavele <yugrotavele at archlinux dot us>
2 # Contributor: Laurie Clark-Michalek <bluepeppers@archlinux.us>
3 # Contributor: escoand <escoand@freenet.de>
8 pkgdesc="A software that helps you instantly find, edit and share all the pictures on your PC"
10 url="http://picasa.google.com"
11 license=('custom:picasa')
12 conflicts=('picasa-beta')
14 [ "$CARCH" = "i686" ] && depends=('freetype2' 'libgphoto2')
15 [ "$CARCH" = "x86_64" ] && depends=('freetype2' 'libgphoto2' 'lib32-nss' 'lib32-openssl')
16 makedepends=('rpmextract')
17 install=picasa.install
18 source=(http://dl.google.com/linux/rpm/testing/i386/picasa-3.0-current.i386.rpm
23 md5sums=('5990be842062ca483239c9f1efca9614'
24 'e0a5175084fb7aaf7a245f5d02592f28'
25 'bad017cdf6c9770f8ec5137def0503d8'
26 '67353beb3a9fdc3bd51f2940fb1fc9f4'
27 'd4b3ad9a34e037c97feaea7a63b16e5c')
30 local picasadir=opt/google/picasa/3.0
33 install -d $srcdir/picasa && cd $srcdir/picasa
34 rpmextract.sh $srcdir/picasa-3.0-current.i386.rpm || return 1
36 # Patch the executable to work with x86_64
37 patch -p1 < $srcdir/picasa.patch || return 1
39 install -d $pkgdir/{$picasadir,usr/bin}
41 # Copy needed wine files
42 cp -rf $srcdir/picasa/$picasadir/wine $pkgdir/$picasadir
44 # Install some needed executables in $picasadir/bin
45 for file in picasa picasasplash setpicasascreensaver \
46 showpicasascreensaver common.sh killpicasa showpicasascreensaver \
47 wrapper fontinstall.sh picasafontcfg
49 install -Dm 755 $srcdir/picasa/$picasadir/bin/$file \
50 $pkgdir/$picasadir/bin/$file
53 ln -s /$picasadir/bin/picasa $pkgdir/usr/bin/picasa
56 install -Dm 644 $srcdir/picasa.desktop $pkgdir/usr/share/applications/picasa.desktop
57 install -Dm 644 $srcdir/picasa/$picasadir/desktop/picasa.xpm $pkgdir/usr/share/pixmaps/picasa.xpm
60 for file in email filemanager urlhandler mimehandler
62 install -Dm 755 $srcdir/picasa/$picasadir/desktop/picasa-hook-$file.sh.template \
63 $pkgdir/$picasadir/info/picasa-hook-$file.sh
66 # Install license files
67 install -Dm 644 $srcdir/picasa/$picasadir/bin/xdg-utils-1.0.2/LICENSE \
68 $pkgdir/usr/share/licenses/$pkgname/LICENSE
69 install -Dm 644 $srcdir/picasa/$picasadir/LICENSE.FOSS \
70 $pkgdir/usr/share/licenses/$pkgname/LICENSE.FOSS
71 install -Dm 644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/picasa.license
73 # Remove some manpages, updater and uninstaller
74 rm -rf $pkgdir/$picasadir/wine/share/man/ \
75 $pkgdir/usr/wine/drive_c/Program\ Files/Picasa2/{Uninstall.exe,PicasaUpdate.exe,update,i18n}
77 # Install ArchLinux specific uninstall documentation
78 install -Dm 644 $srcdir/uninstall.html \
79 $pkgdir/$picasadir/wine/drive_c/Program\ Files/Picasa2/i18n/uninstall.html