# Contributor: Grigory Kirillov # Maintainer: Simon Zeni pkgname=stb pkgver=0_git20220908 _commit=8b5f1f37b5b75829fc72d38e7b5d4bcbf8a26d55 pkgrel=3 pkgdesc="Single-file public domain (or MIT licensed) libraries for C/C++" url="https://github.com/nothings/stb" arch="noarch" license="MIT" # tests always return 0 exit code options="!check" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/nothings/stb/archive/$_commit.tar.gz stb.pc" builddir="$srcdir/$pkgname-$_commit" package() { install -Dm644 stb_* -t "$pkgdir"/usr/include install -Dm644 docs/* -t "$pkgdir"/usr/share/doc/"$pkgname" install -Dm644 "$srcdir"/stb.pc -t "$pkgdir"/usr/lib/pkgconfig sed -i "s|@PKGVER@|$pkgver|" "$pkgdir"/usr/lib/pkgconfig/stb.pc } sha512sums=" 76e0ed7536146aac71f89d6246235221c1dc0bd035ae4b33d496213acf5be95413cae4455a3f1419f84113320f7bd662dc50b47788cbdc8e7208bbbbcfd23f98 stb-0_git20220908.tar.gz e32e29628a8580dbeb574cbd9427377d8d49d31f4785c15589ae7315c6ac534882cde659a50a3000098cd9dd3d5c4596997d1fdf9ced9c569f424774aa8f5776 stb.pc "