# Contributor: knuxify # Maintainer: knuxify pkgname=stbi-sharp pkgver=1.2.1 pkgrel=0 pkgdesc="C# wrapper around stb_image.h and qoi.h" url="https://github.com/Tom94/stbi-sharp" arch="all" license="BSD-3-Clause" makedepends="cmake stb-dev qoi-dev" source="https://github.com/Tom94/stbi-sharp/archive/refs/tags/v$pkgver/stbi-sharp-$pkgver.tar.gz use-system-stb.patch" options="!check" # no test suite build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cd "$builddir"/libstbi cmake -B build \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=MinSizeRel \ $CMAKE_CROSSOPTS . cmake --build build } package() { DESTDIR="$pkgdir" cmake --install "$builddir"/libstbi/build } sha512sums=" cd849e73511ac0afba747e2a10fc0478c3f7eba69235a0ee3b8c8aeb33cb4a4ac56d48c7cc818c56ee0a123838e87820c7df5d045b835a2f03980b78f1b01000 stbi-sharp-1.2.1.tar.gz 0dd9c4f8dc2ddc84ef2aa307dc348194ba0e94d2f0c75898cac22729415a42dd50baefc23cfe2607ea5e73575b9b0db67739773706cf2e4b78a2edbd1d8c9daa use-system-stb.patch "