# -*- 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 ea52a3251d60906d67f9a1031a6ed7642753f94f
version             2024.02.26
revision            0
categories          security devel crypto
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer

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  8c5a98af501af3c0be915ce51dbe6aabb0964ad2 \
                    sha256  ef5240d97fbef18f326233f4e916ea9cbccca8866539cfb29c5b743b34cab92b \
                    size    40034
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