# Maintainer: Collabora Ltd <ed.smith@collabora.com>

pkgname="c-tools"
_srctag=mash-20250121.1
pkgver=${_srctag#mash-}
pkgrel=1
pkgdesc="Generate metadata for mash"
url="http://repo.steampowered.com"
license=("MIT" "Apache-2.0")
ncxfab_makedepends=(base-devel git)
ncxfat_makedepends=(binutils gcc glibc)
source=("c-tools::git+https://gitlab.steamos.cloud/potato/mash/${pkgname}.git#tag=${_srctag}")
sha256sums=('SKIP')

build() {
    cd c-tools

    make CC=${MPKG_TOOLPREFIX}gcc
}

package() {
    cd c-tools
    make install DESTDIR="$pkgdir"$MPKG_USRPATH/bin
}
