# $Id: Portfile 125295 2014-09-12 21:32:46Z mf2k@macports.org $

PortSystem      1.0

name            deb2targz
version         20021217
revision        1
categories      archivers
license         none
platforms       darwin
supported_archs noarch
maintainers     gmail.com:stuartwesterman openmaintainer
description     converts .deb packages to .tar.gz archives

long_description \
    deb2targz is a very small perl script for converting \
    Debian Linux style .deb packages to a friendly .tar.gz. deb2targz \
    does not need any external programs like ar or tar.

homepage        http://www.miketaylor.org.uk/tech/deb/
master_sites    http://critical.ch/distfiles/ \
                freebsd

checksums       md5 faa652c6447bd04ebb89d5d23c54f9a3 \
                sha1 db159f5c5f46805554361eca55d123b68f8b5c3d \
                rmd160 5869859e592df664602e54df4d1d596e1fda2ac9
				
depends_run     path:bin/perl:perl5

post-patch {
    reinplace "s|#!/usr/bin/perl -w|#!${prefix}/bin/perl -w|g" ${worksrcpath}/deb2targz
}

use_configure   no

build           {}

destroot {
    xinstall -m 0755 ${worksrcpath}/deb2targz ${destroot}${prefix}/bin
}

livecheck.type  none
