updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / google-hacks-gui / PKGBUILD
blobb56e8f221e277dee3e8f5c56bd20008689c8e1ad
1 # Contributor:Xemertix <arch88(at)katamail(dot)com>
2  
3 pkgname=google-hacks-gui
4 _pkgname1=GoogleHacks
5 pkgver=1.6
6 pkgrel=1
7 pkgdesc="a compilation of carefully crafted Google searches"
8 arch=('i686' 'x86_64')
9 url="http://code.google.com/p/googlehacks/"
10 license=('GPL')
11 depends=('pango' 'bash' 'libstdc++5' 'gtk2' )
12 [ "$CARCH" = "x86_64" ] && depends=('lib32-pango' 'bash' 'lib32-libstdc++5' 'lib32-gtk2' ) 
13 source=(http://googlehacks.googlecode.com/files/${_pkgname1}${pkgver}.tar.gz
14         'googlehacks'
15         'googlehacks.desktop'
16         'googlehacks.png')
17 md5sums=('94a1318dce921d5209f76375b05a0753'
18          '420f9ef4c6ea53f8d2db90d31ccda479'
19          '9eef625d39954054a1e96788a421ba23'
20          '7b47a0639dc2f2d1648f13453acda44c')
22 build() {
23   cd $srcdir
24   # Program 
25   install -D -m 755 GoogleHacks ${pkgdir}/opt/${pkgname}/GoogleHacks
26   install -D -m 755 googlehacks $pkgdir/usr/bin/googlehacks
27   [ "$CARCH" = "x86_64" ] && sed -i 's:#!/bin/sh:#!/bin/sh\nexport PANGO_RC_FILE="/opt/lib32/config/pango/pangorc":' $pkgdir/usr/bin/googlehacks
29   # Freedesktop compatibility
30   install -D -m 664 googlehacks.png ${pkgdir}/usr/share/icons/googlehacks.png
31   install -D -m 664 googlehacks.desktop ${pkgdir}/usr/share/applications/googlehacks.desktop