# Template file for 'dcraw'
pkgname=dcraw
version=9.27
revision=3
build_style=fetch
makedepends="jasper-devel lcms2-devel"
short_desc="Convert raw photos"
maintainer="Felix Hanley <felix@userspace.com.au>"
license="GPL-2"
homepage="https://www.cybercom.net/~dcoffin/dcraw/"
distfiles="https://www.cybercom.net/~dcoffin/dcraw/dcraw.c
 https://www.cybercom.net/~dcoffin/dcraw/dcraw.1"
checksum="4a0bc163eca6b896463a56c2b4e45b5b02b039e2654508a5982fe69a01288ec1
 f52a6b2ed50360240ff44d7ff9ec430ca8195fbb07f48003a1fa63c5a69217aa"

do_build() {
	$CC -o dcraw $CFLAGS dcraw.c $LDFLAGS -lm -ljasper -ljpeg -llcms2
}

do_install() {
	vbin dcraw
	vman dcraw.1
}
