From b5ab3c4c86cd8f810c39642e3e329b4c3fc2f39d Mon Sep 17 00:00:00 2001 From: Steve Prybylski Date: Mon, 8 Feb 2016 02:20:28 -0500 Subject: [PATCH] ampache: fix distfiles; change install location. - All deps are now shipped with zip archive. - Use the standard - usr/share/webapps - as install location. --- srcpkgs/ampache/template | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/srcpkgs/ampache/template b/srcpkgs/ampache/template index 172caa022e8..44b17e6fdab 100644 --- a/srcpkgs/ampache/template +++ b/srcpkgs/ampache/template @@ -1,21 +1,23 @@ # Template file for 'ampache' pkgname=ampache version=3.8.2 -revision=1 +revision=2 noarch=yes build_style=fetch +hostmakedepends="unzip" depends="php mysql" short_desc="Web-based tool for managing your audio/video files" maintainer="Steve Prybylski " license="AGPL-3" homepage="http://ampache.org" -distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz" -checksum=920509ed018695ac4698fc257b27a30eebb34e4199da2436954c6a30ba378fb9 +distfiles="https://github.com/${pkgname}/${pkgname}/releases/download/${version}/${pkgname}-${version}_all.zip" +checksum=b54a4f08248c4389e98ce3f680da0bbc1c19e388e379e6920dc601947acaa3e2 do_install() { - tar -zxvf ${pkgname}-${version}.tar.gz - vmkdir srv/httpd/ - vcopy ${pkgname}-${version} srv/httpd/ampache + local dest=usr/share/webapps/${pkgname} - vinstall ${FILESDIR}/nginx-example.conf 644 usr/share/doc/${pkgname}/ + vmkdir $dest + unzip ${pkgname}-${version}_all.zip -d ${DESTDIR}/$dest + + vinstall ${FILESDIR}/nginx-example.conf 644 usr/share/doc/${pkgname} }