# $Id: Portfile 82911 2011-08-22 00:12:13Z jmr@macports.org $

PortSystem 1.0

name		malsync
version		2.2.0
# not a great match; FreeBSD has a "palm" category but we don't yet
categories	comms
platforms	darwin
maintainers	fenner
homepage	http://www.tomw.org/malsync/
master_sites	http://www.tomw.org/malsync/ netbsd:packages/distfiles
checksums	md5 d1c41526b91bb38c21a4ced01d26328c
distname	${name}_${version}.src
worksrcdir	${name}
description	AvantGo.com palm pilot synchronization utility
depends_lib	lib:pisock.8:pilot-link
patchfiles	malsync.patch
long_description MalSync is a command line tool that allows Palm \
 Pilots to synchronize to the AvantGo.com server.
use_configure	no
build		{ system -W ${worksrcpath} "${build.cmd} PREFIX=${prefix}" }
destroot	{
 xinstall -m 755 ${worksrcpath}/malsync ${destroot}${prefix}/bin
 set docdst "${destroot}${prefix}/share/doc/malsync"
 xinstall -d ${docdst}
 xinstall -m 644 ${worksrcpath}/Doc/README_AvantGo ${docdst}
 xinstall -m 644 ${worksrcpath}/Doc/README_malsync ${docdst}
}
