1 # Maintainer: archtux <antonio.arias99999 at gmail.com>
6 pkgdesc="Application to access Danbooru-based image boards."
7 url="http://www.dennogumi.org/projects/danbooru-client"
10 depends=('kdebase-lib' 'kdebindings-python' 'python2')
12 conflicts=('danbooru-client')
14 _gitroot="git://gitorious.org/danbooru-client/danbooru-client.git"
15 _gitname="danbooru-client"
20 msg "Connecting to GIT server...."
22 if [ -d $srcdir/$_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build
37 sed -i 's_danbooru\_client_python2 /usr/bin/danbooru\_client_' danbooru_client.desktop
39 cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
40 -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
41 -DPYTHON_EXECUTABLE=/usr/bin/python2 \
42 -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python2.7/site-packages
44 make DESTDIR=$pkgdir install