updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / danbooru-git / PKGBUILD
blobb7f1790feea27579a1baf3d3af8fc730618cea04
1 # Maintainer: archtux <antonio.arias99999 at gmail.com>
3 pkgname=danbooru-git
4 pkgver=20120107
5 pkgrel=1
6 pkgdesc="Application to access Danbooru-based image boards."
7 url="http://www.dennogumi.org/projects/danbooru-client"
8 arch='any'
9 license='GPL2'
10 depends=('kdebase-lib' 'kdebindings-python' 'python2')
11 makedepends=('git')
12 conflicts=('danbooru-client')
14 _gitroot="git://gitorious.org/danbooru-client/danbooru-client.git"
15 _gitname="danbooru-client"
18 build() {
19    cd $srcdir
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."
25    else
26         git clone $_gitroot
27    fi
29    msg "GIT checkout done or server timeout"
30    msg "Starting make..."
32    cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build
34    cd ./$_gitname-build
36    # Desktop file fix
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
43    make
44    make DESTDIR=$pkgdir install