# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=slimcc-headers
pkgver=0_git20250528
_gitrev=18a99a2f72682385bb42a33c2eee816bbdb10f64
pkgrel=0
pkgdesc="C11 compiler with C23/C2y/GNU extensions (header files)"
url="https://github.com/fuhsnn/slimcc"
arch="x86_64"
license="MIT" # license file is distributed with the main slimcc package
source="https://github.com/fuhsnn/slimcc/archive/$_gitrev/slimcc-$_gitrev.tar.gz"
builddir="$srcdir/slimcc-$_gitrev"

# !check: headers are split so slimcc's check() can find them
# at their usual location, without having to rely on relative
# paths, so if slimcc check() passes, then this should be good.
# !archcheck: headers are for slimcc, which is x86_64-only.
options="!check !archcheck"
replaces="slimcc"

package() {
	install -Dvm644 slimcc_headers/include/* \
		-t "$pkgdir"/usr/lib/slimcc/include/
}

sha512sums="
cd6183dd1e1861e205ffd5f51db4beefc9da6f8de84506a57a969f478e2a8bb7a0986876b9000ba2df24728613682f10a1b9e453a0aa8080a487efa8798237ba  slimcc-18a99a2f72682385bb42a33c2eee816bbdb10f64.tar.gz
"
