1 # Maintainer: TDY <tdy@gmx.com>
2 # Contributor: Loya Liu <loya.liu@gmail.com>
7 pkgdesc="An advanced color picker"
9 url="http://gpick.googlecode.com/"
11 depends=('dbus-glib>=0.76' 'gtk2>=2.12.0' 'hicolor-icon-theme' 'lua>=5.1')
12 makedepends=('boost' 'scons' 'subversion')
16 source=(gpick.desktop LICENSE)
17 md5sums=('9bcf9591e2ff77dc34db093410aadb00'
18 '8d148bfa61e38ba91b3a832dbb378320')
20 _svntrunk=http://gpick.googlecode.com/svn/trunk/
26 if [[ -d $_svnmod/.svn ]]; then
27 cd $_svnmod && svn up -r $pkgver && cd ..
29 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
33 cp -r $_svnmod $_svnmod-build
36 # quick patch for r140
37 sed -i '19a\#include <cstddef>' source/Color{Action,List,Object}.cpp
43 cd "$srcdir/$_svnmod-build"
44 scons DESTDIR="$pkgdir/usr" install
45 install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
46 install -Dm644 ../$_svnmod.desktop \
47 "$pkgdir/usr/share/applications/$_svnmod.desktop"