1 # Contributor: cmorlok <christianmorlok@web.de>
2 # Contributor: fazibear <fazibear@gmail.com>
3 # Contributor: neuromante <lorenzo.nizzi.grifi@gmail.com>
4 # Contributor: Gordin <9ordin @t gmail.com>
6 pkgname=nautilus2-dropbox
9 pkgdesc="Dropbox for Linux - Nautilus extension and Command Line Interface"
10 arch=('i686' 'x86_64')
11 url="http://forums.dropbox.com/topic.php?id=21111"
13 makedepends=('docutils')
14 depends=('gtk2' 'libnotify' 'nautilus2' 'dropbox' 'pygtk' 'python2')
15 install=nautilus-dropbox.install
16 source=("https://www.dropbox.com/download?dl=packages/nautilus-dropbox-${pkgver}.tar.bz2")
17 md5sums=('94d68f74ed2ef0c1f998aeb45af03caf')
19 cd "$srcdir/nautilus-dropbox-${pkgver}/"
21 sed -i "s/| python/|python2/" configure.in
22 sed -i "s/\[python\]/[python2]/" configure.in
24 sed -i "s/| python/|python2/" configure
25 sed -i "s/set dummy python/set dummy python2/" configure
26 sed -i 's|$(top_builddir)/libtool|libtool|' configure
28 sed -i 's|$(top_builddir)/libtool|libtool|' aclocal.m4
29 sed -i "s|/usr/bin/python|/usr/bin/python2|" dropbox.in
30 sed -i "s|env python|env python2|" rst2man.py
31 sed -i 's|python |python2 |' Makefile.am
32 sed -i 's|python |python2 |' Makefile.in
34 ./configure --prefix=/usr --sysconfdir=/etc || return 1
36 make install DESTDIR=$pkgdir || return 1
37 rm $pkgdir/usr/bin/dropbox
38 rm $pkgdir/usr/share/applications/dropbox.desktop
39 rmdir $pkgdir/usr/share/applications