# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0

github.setup        douglascrockford JSMin 430bfe68dc0823d8c0f92c08d426e517cbc8de5e
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                jsmin
version             20191031
categories          lang
maintainers         sergiokas.com:dev openmaintainer
license             MIT

description         JavaScript minifier tool

long_description    Douglas Crockford's original JavaScript minifier tool

homepage            http://www.crockford.com/javascript/jsmin.html

checksums           rmd160  fa16ff9fe5edfd7803cf238967609c8de16ebfc2 \
                    sha256  314261fac2c97f27dba687c80785804be5dd33bd27a470c5faa150fcff9a3abe \
                    size    4408

use_configure       no

variant universal {}

build.cmd           ${configure.cc}
build.args          [get_canonical_archflags cc] -Wall -o jsmin
build.target        jsmin.c

destroot {
    xinstall ${worksrcpath}/jsmin ${destroot}${prefix}/bin/jsmin
}
