updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / chronicle / PKGBUILD
blobf149366dcf8a72c0351c73e45be7bde210956938
1 # Maintainer: Kaiting Chen <kaitocracy@gmail.com>
2 # Contributor: Pete Morris <pete dot morris at gmail>
4 pkgname='chronicle'
5 pkgver='4.5'
6 pkgrel='1'
7 pkgdesc='A simple blog compiler writte in Perl'
8 arch=('any')
9 url='http://www.steve.org.uk/Software/chronicle/'
10 license=('GPL' 'PerlArtistic')
11 depends=('perl-timedate'
12   'perl-html-template')
14 md5sums=('7cbb9bd0c6d775c0c500675615b649c9')
15 source=("$url/$pkgname-$pkgver.tar.gz")
17 build() {
18   cd "${srcdir}/${pkgname}-${pkgver}"
20   sed -i "s|^prefix=$|prefix=$pkgdir|" Makefile
21   sed -i 's|/usr/local/bin|/usr/bin|g' Makefile
23   make DESTDIR=$pkgdir install
25   install -Dm644 cgi-bin/comments.cgi \
26     ${pkgdir}/usr/share/${pkgname}/comments.cgi