# $Id: Portfile,v 1.1 2004/08/13 15:17:49 olegb Exp $

PortSystem 1.0
name		ha
version		0.999
categories	archivers sysutils
platforms	darwin
description	The "HA" archiver, based on arithmetic/Markov coder.
maintainers	jc@crazic.ru
long_description ${description}
worksrcdir	ha
extract.post_args | tar -xf - -C ha
distfiles	ha0999.tgz
master_sites	ftp://ftp.kiarchive.ru/pub/unix/arcers/
checksums	md5 77f3266a451712bec55d60df67f61486

patchfiles	patch-asc.c patch-cpy.c patch-hsc.c

pre-extract	{
	system "mkdir ${worksrcpath}"
}

configure	{}

build.args	-f makefile.nix
build.target	{}

destroot	{
	xinstall -m 755 -d ${destroot}/${prefix}/bin

	file copy ${build.dir}/ha ${destroot}/${prefix}/bin
}
