#Maintainer: max-k #Contributor: Jonathan 'gishten' Gustafsson pkgname=ampache-git _gitname=ampache pkgver=3.8.9.4.g33e39238 pkgrel=1 pkgdesc="A PHP-based tool for managing and playing your audio/video files via a web interface" arch=('i686' 'x86_64') url="http://www.ampache.org/" license=('GPL') depends=('mariadb>=5.0' 'php>=5.4' 'curl') makedepends=('git' 'php-composer') optdepends=('ffmpeg: all transcoding/downsampling' 'lame: mp3 transcoding/downsampling' 'vorbis-tools: ogg transcoding/downsampling' 'flac: flac transcoding/downsampling' 'faad2: m4a transcoding/downsampling' 'mp3splt: mp3, ogg and flac downsampling') conflicts=('ampache' 'ampache-development') install=${_gitname}.install source=(git://github.com/${_gitname}/${_gitname}.git 'nginx-example.conf') sha256sums=('SKIP' 'efb63c0ac7e6462ee5c705b9c1998a1d2462502e19e7e5c97fce2c5142b8e62e') pkgver() { cd ${_gitname} git describe --long --tags | sed 's|-|.|g' } build() { echo "" > /dev/null } package() { cd ${srcdir}/${_gitname} mkdir -p ${pkgdir}/srv/http/${_gitname} cp -a * ${pkgdir}/srv/http/${_gitname}/ cd ${pkgdir}/srv/http/${_gitname} composer install --prefer-source --no-interaction mkdir -p ${pkgdir}/usr/share/doc/${_gitname} install -D -m644 ${srcdir}/nginx-example.conf ${pkgdir}/usr/share/doc/${_gitname}/ }