updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / dropbox-index-svn / PKGBUILD
blobdbd5758728a70275813da508db55d4ed1ece9dd0
1 # Maintainer: Mike Redd <mredd@0tue0.com>
2 # Contributor: Mike Redd <mredd@0tue0.com>
4 pkgname=dropbox-index-svn
5 _pkgname=dropbox-index
6 _svntrunk=http://kosciak-misc.googlecode.com/svn/python/$_pkgname/trunk/
7 _svnmod=$_pkgname
9 pkgver=145
10 pkgrel=2
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')
14 license=('Apache')
15 depends=('python2' 'dropbox')
16 makedepends=('subversion')
17 provides=('$_pkgname')
18 source=('http://www.apache.org/licenses/LICENSE-2.0')
19 md5sums=('3b83ef96387f14655fc854ddc3c6bd57')
22 build() {
23   cd $srcdir
24   mkdir -p ~/.subversion
25   svn co $_svntrunk -r $pkgver $_svnmod
26   cd $_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
38   cd $pkgdir
39   ln -s /usr/share/$_pkgname/$_pkgname.py $pkgdir/usr/bin/$_pkgname.py
40   # remove license file
41   #rm $startdir/LICENSE-2.0