Skip to content

Instantly share code, notes, and snippets.

/PKGBUILD.sh
Created Dec 24, 2012

Embed
What would you like to do?
PKGBUILD
# Maintainer: gls < ghostlovescorebg at gmail dot com >
pkgname=rompr
pkgver=0.16.3
pkgrel=1
pkgdesc="Web frontend to MPD"
arch=('any')
url="http://sourceforge.net/projects/rompr/"
license=('custom')
depends=('mpd' 'imagemagick' 'php')
optdepends=('apache'
'lighttpd'
'nginx')
source=(http://downloads.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver}.zip
albumart_convert.patch)
md5sums=('f1620b0aad30b25c3ae775567695c551'
'b2587a0aa46a4eb1364428bcea3139fe')
build () {
cd "${srcdir}/${pkgname}"
sed -i 's|PATH-TO-ROMPR|srv/http/rompr|' apache_conf.d/rompr.conf
patch -p2 < "${srcdir}/albumart_convert.patch"
}
package() {
cd "${srcdir}"
find -name '.svn' -delete
install -Dm 644 "${srcdir}/${pkgname}/apache_conf.d/rompr.conf" "${pkgdir}/etc/httpd/conf/extra/rompr.conf"
install -d "${pkgdir}/srv/http"
cp -ra rompr "${pkgdir}/srv/http"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.