# Maintainer: 6arms1leg <6arms1leg {at} pm {d0t} me> # Contributor: Tom Wallroth pkgname=cherrymusic-devel-git pkgver=20160210 pkgrel=1 pkgdesc="A standalone HTML5 (with Flash fallback) music streaming server based on CherryPy and jPlayer. Git devel-branch." arch=('any') url="http://fomori.org/cherrymusic" license=('GPL3') depends=('python>=3' 'python-cherrypy>=3' 'sqlite>=3') makedepends=('git' 'python') optdepends=('lame' 'vorbis-tools' 'flac' 'faad2' 'mpg123' 'opus-tools' 'ffmpeg' 'imagemagick' 'python-unidecode' 'python-gobject' 'python-pillow') provides=('cherrymusic') conflicts=('cherrymusic') options=(!emptydirs) install=cherrymusic-devel-git.install source=($pkgname::git+https://github.com/devsnd/cherrymusic.git#branch=devel 'cherrymusic@.service') sha512sums=('SKIP' '9d336a06492df0bb5718848f161895922d08171ab637b54fffad42fc5c12cd22d00f2408dabffc3617f0a59512276e38553f1c63a0ea68028982076b7f115165') _mandir=/usr/share/man _systemdsfdir=/usr/lib/systemd/system pkgver() { cd "$srcdir/$pkgname" git log -1 --format="%cd" --date=short | tr -d '-' } package() { cd "$srcdir/$pkgname" python setup.py install --root="$pkgdir/" --optimize=1 echo -e '\033[1;32minstalling manpages...\033[0m' install -Dm644 "doc/man/cherrymusic.1.gz" "$pkgdir$_mandir/man1/cherrymusic.1.gz" install -Dm644 "doc/man/cherrymusic.conf.5.gz" "$pkgdir$_mandir/man5/cherrymusic.conf.5.gz" install -Dm644 "doc/man/cherrymusicd.8.gz" "$pkgdir$_mandir/man8/cherrymusicd.8.gz" echo -e '\033[1;32minstalling systemd service file...\033[0m' install -Dm644 "$srcdir/cherrymusic@.service" "$pkgdir$_systemdsfdir/cherrymusic@.service" } # vim:set ts=2 sw=2 et: