# Template file for 'fossil'
pkgname=fossil
version=20120317175325
wrksrc="fossil-src-${version}"
revision=1
makedepends="openssl-devel readline-devel sqlite-devel"
short_desc="Simple, high-reliability, distributed software configuration management"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
homepage="http://www.fossil-scm.org"
distfiles="http://www.fossil-scm.org/download/fossil-src-${version}.tar.gz"
checksum=8ea3462a29e645fe0bd062d5742de4e1921a38acced5107d08465821d95aa9b0
long_desc="
 Fossil is an easy-to-use Distributed Source Control Management system (DSCM)
 which supports access and administration over HTTP CGI or via a built-in HTTP
 server, has a built-in wiki, built-in file browsing, a built-in tickets system,
 etc."

do_build() {
	./configure --prefix=/usr --disable-internal-sqlite
	make ${makejobs}
}

do_install() {
	vmkdir usr/bin
	make DESTDIR=${DESTDIR} install

	# Install license.
	vinstall COPYRIGHT-BSD2.txt 644 usr/share/licenses/${pkgname} LICENSE
}
