# -*- 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           makefile 1.0
PortGroup           github 1.0

github.setup        i2p libsam3 0.31.2 v
epoch               1
revision            0
categories          security devel crypto
maintainers         nomaintainer

description         C library for the SAM v3 API
long_description    {*}${description}. It is used in projects such as I2P \
                    and RetroShare.
license             MIT
homepage            https://geti2p.net/en/docs/api/samv3

checksums           rmd160  4138b28deffa9c90a7704e22b5f8956992cbf48d \
                    sha256  613e8ff2b44fca126026e3da3cdbd96872f6b7edce74fb1d0943843e0c662b17 \
                    size    39981
github.tarball_from archive

build.target        build

destroot {
    copy ${worksrcpath}/${name}.a ${destroot}${prefix}/lib/
    xinstall -d ${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} README.md ${prefix}/share/doc/${name}/
}

test.run            yes
test.target         check
