1 # Maintainer: dieghen89 <dieghen89@gmail.com>
2 # Contributor: Mike Redd <mredd@0tue0.com>
7 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. "
9 url=('http://code.google.com/p/kosciak-misc/wiki/DropboxIndex')
11 depends=('python2' 'dropbox')
12 makedepends=('subversion')
13 provides=('$_pkgname')
14 source=("http://www.apache.org/licenses/LICENSE-2.0"
15 "http://pypi.python.org/packages/source/d/dropbox-index/dropbox-index-${pkgver}.tar.gz")
16 md5sums=('3b83ef96387f14655fc854ddc3c6bd57'
17 '17af3dc3983770287237f49551c98341')
20 cd $srcdir/$pkgname-$pkgver
21 mkdir -p $pkgdir/usr/bin/
22 mkdir -p $pkgdir/usr/share/$pkgname/
23 mkdir -p $pkgdir/usr/share/licenses/$pkgname/
24 install -d $pkgdir/usr/share/$pkgname
25 cp -r "icons/" "$pkgdir/usr/share/$pkgname"
26 install -Dm655 template-example.html $pkgdir/usr/share/$pkgname/template-example.html
27 install -Dm655 $srcdir/LICENSE-2.0 $pkgdir/usr/share/licenses/$pkgname/LICENSE
28 install -Dm755 dropbox_index/__init__.py $pkgdir/usr/share/$pkgname/$pkgname.py
29 sed -i 's/python/python2/' $pkgdir/usr/share/$pkgname/$pkgname.py
30 # symlink to bin folder
31 ln -s $pkgdir/usr/share/$pkgname/$pkgname.py $pkgdir/usr/bin/$pkgname.py