# Maintainer: 6arms1leg <6arms1leg {at} pm {d0t} me> # Contributor: Tom Wallroth pkgname=cherrymusic pkgver=0.41.3 pkgrel=1 pkgdesc="A standalone HTML5 (with Flash fallback) music streaming server based on CherryPy and jPlayer." arch=('any') url="http://fomori.org/cherrymusic" license=('GPL3') depends=('python>=3' 'python-cherrypy>=3' 'sqlite>=3') makedepends=('python') optdepends=('lame' 'vorbis-tools' 'flac' 'faad2' 'mpg123' 'opus-tools' 'ffmpeg' 'imagemagick' 'python-unidecode' 'python-gobject' 'python-pillow') options=(!emptydirs) install=cherrymusic.install source=($pkgname-${pkgver//_/-}.tar.gz::https://github.com/devsnd/cherrymusic/archive/${pkgver}.tar.gz 'cherrymusic@.service') sha512sums=('624a7977d1068bf9759cd1920aec0bd9c0597b615eb034272900e3d0317b368dc28a4b7d02781b80f169536e3c4860e424d52cdf1fa267622310cadb4ae9372e' '9d336a06492df0bb5718848f161895922d08171ab637b54fffad42fc5c12cd22d00f2408dabffc3617f0a59512276e38553f1c63a0ea68028982076b7f115165') _mandir=/usr/share/man _systemdsfdir=/usr/lib/systemd/system package() { cd "$srcdir/$pkgname-${pkgver//_/-}" 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: