| 1 | # Contributor: Thomas Mudrunka <harvie@@email..cz> |
| 2 | # You can also contact me on http://blog.harvie.cz/ |
| 3 | |
| 4 | pkgname=harvies-jukebox-svn |
| 5 | pkgver=5 |
| 6 | pkgrel=1 |
| 7 | pkgdesc="Simple PHP application acting as jukebox or music library. This allows you to stream or download your music many ways. Will be checked from SVN to /srv/http/h-jukebox. You will need some http server with PHP and do some settings in .php files. Then you can add symlink to your music collection in this application." |
| 8 | arch=('any') |
| 9 | license=('BSD') |
| 10 | url="http://code.google.com/p/h-jukebox/" |
| 11 | makedepends=('subversion') |
| 12 | |
| 13 | _svntrunk="http://h-jukebox.googlecode.com/svn/trunk/" |
| 14 | _svnmod="h-jukebox-read-only" |
| 15 | |
| 16 | build() { |
| 17 | mkdir -p ${pkgdir}/srv/http/h-jukebox |
| 18 | |
| 19 | cd ${srcdir} |
| 20 | svn checkout ${_svntrunk} ${_svnmod} |
| 21 | |
| 22 | cp -R ${srcdir}/${_svnmod}/* ${pkgdir}/srv/http/h-jukebox |
| 23 | find ${pkgdir} -name .svn -print0 | xargs -0 rm -rf #remove .svn directories |
| 24 | chmod -R 655 ${pkgdir}/ |
| 25 | } |