1 # Maintainer: Mike Redd <mredd@0tue0.com>
2 # Contributor: Mike Redd <mredd@0tue0.com>
4 pkgname=dropbox-index-svn
6 _svntrunk=http://kosciak-misc.googlecode.com/svn/python/$_pkgname/trunk/
11 pkgdesc="Creates index.html for directory contents shared publicly on Dropbox. That way you can easily share whole content of the directory without the need to send separate links for all the shared files. "
12 arch=('i686' 'x86_64')
13 url=('http://code.google.com/p/kosciak-misc/wiki/DropboxIndex')
15 depends=('python2' 'dropbox')
16 makedepends=('subversion')
17 provides=('$_pkgname')
18 source=('http://www.apache.org/licenses/LICENSE-2.0')
19 md5sums=('3b83ef96387f14655fc854ddc3c6bd57')
24 mkdir -p ~/.subversion
25 svn co $_svntrunk -r $pkgver $_svnmod
27 mkdir -p $pkgdir/usr/bin/
28 mkdir -p $pkgdir/usr/share/$_pkgname/
29 mkdir -p $pkgdir/usr/share/licenses/$_pkgname/
30 install -d $pkgdir/usr/share/$_pkgname
31 cp -r "icons/" "$pkgdir/usr/share/$_pkgname"
32 install -Dm655 template-example.html $pkgdir/usr/share/$_pkgname/template-example.html
33 install -Dm655 $srcdir/LICENSE-2.0 $pkgdir/usr/share/licenses/$_pkgname/LICENSE
34 # install -Dm755 $_pkgname.py $pkgdir/usr/share/$_pkgname/$_pkgname.py
35 install -Dm755 dropbox_index/__init__.py $pkgdir/usr/share/$_pkgname/$_pkgname.py
36 sed -i 's/python/python2/' $pkgdir/usr/share/$_pkgname/$_pkgname.py
37 # symlink to bin folder
39 ln -s /usr/share/$_pkgname/$_pkgname.py $pkgdir/usr/bin/$_pkgname.py
41 #rm $startdir/LICENSE-2.0