# -*- 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        openSUSE obs-build 2.5.0 obs_
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            1
name                obs-build-helpers
categories          devel python
platforms           any
supported_archs     noarch
license             {GPL-2 GPL-3}
maintainers         {raimue @raimue} \
                    openmaintainer

description         Helper tools distributed with obs-build

long_description    obs-build is the tool running builds for the openSUSE build \
                    service. Since these tools are only useful on Linux, this \
                    port only provides some of the contained helper tools like vc.

checksums           rmd160  6515dee5fbb207b389c163fcbb0c6a0e5658123d \
                    sha256  d176b19ccddc11208e6288bdcf758a81d5a194bea994468400a16823135c18d0 \
                    size    147830

# the tarball contains file names differing in case only,
# making it impossible to extract on a case-sensitive filesystem
extract.post_args-append --exclude 'build*'

use_configure no

build {}

destroot {
    xinstall -d -m 755 ${destroot}${prefix}/libexec/obs-build
    xinstall -m 755 ${worksrcpath}/vc ${destroot}${prefix}/libexec/obs-build/vc
}
