gdritter repos void-extra-packages / master srcpkgs / gdritter-inf-blog / template
master

Tree @master (Download .tar.gz)

template @master

dfa4b24
 
 
 
 
0f07f6a
dfa4b24
 
 
 
 
 
 
 
 
 
 
 
0f07f6a
dfa4b24
 
 
 
 
 
 
# Template file for 'gdritter-inf-blog'
pkgname=gdritter-inf-blog
version=0.2
revision=2
nocross=yes
build_style=haskell-cabal
wrksrc="inf-blog-${version}"
hostmakedepends="cabal-install"
makedepends="ghc zlib-devel"
short_desc="Deployment package for blog.infinitenegativeutility.com"
maintainer="Getty Ritter <gdritter-inf-blog-pkg@infinitenegativeutility.com>"
license="Proprietary"
homepage="http://blog.infinitenegativeutility.com/"
distfiles="http://gdritter.com/inf-blog-${version}.tar.gz"
checksum="dafec84b9e92c9a2f9f0de7bb3ee01407bb087de157f708d59e065ada8ce7781"
nopie=yes  # network-2.6.2.1 build fails with a relocation
system_accounts="http"

post_install() {
	mkdir -p ${DESTDIR}/opt/inf/blog/{static,log,snaplets/{sqlite-auth,sqlite-simple}}
	cp ${wrksrc}/static/main.css ${DESTDIR}/opt/inf/blog/static/.
	cp ${wrksrc}/schema.sql ${DESTDIR}/opt/inf/blog/.

	mkdir -p ${DESTDIR}/etc/sv/gdr-inf-blog
	cp ${FILESDIR}/run ${DESTDIR}/etc/sv/gdr-inf-blog
}