diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0572ac1e9f89 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = mingw-w64-stb-git + pkgdesc = single-file public domain (or MIT licensed) libraries for C/C++ (mingw-w64) + pkgver = r1865.f54acd4 + pkgrel = 1 + url = https://github.com/nothings/stb + arch = any + license = public domain + license = MIT + makedepends = git + provides = mingw-w64-stb + conflicts = mingw-w64-stb + source = git+https://github.com/nothings/stb.git + sha256sums = SKIP + +pkgname = mingw-w64-stb-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..08a602188b72 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +pkgname=mingw-w64-stb-git +pkgver=r1865.f54acd4 +pkgrel=1 +pkgdesc="single-file public domain (or MIT licensed) libraries for C/C++ (mingw-w64)" +arch=('any') +url="https://github.com/nothings/stb" +license=('public domain' 'MIT') +makedepends=('git') +provides=('mingw-w64-stb') +conflicts=('mingw-w64-stb') +source=("git+https://github.com/nothings/stb.git") +sha256sums=('SKIP') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +pkgver() { + cd "${srcdir}"/stb + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}"/stb + install -d "$pkgdir"/usr/${_arch}/include/stb + install -m644 *.h "$pkgdir"/usr/${_arch}/include/stb + install -m644 *.c "$pkgdir"/usr/${_arch}/include/stb + done +} |