summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2020-04-25 17:22:51 +0200
committerMichel Zou2020-04-25 17:22:51 +0200
commit8a12b240ef5be82f04744626709a0d6179ead310 (patch)
tree6d0d34cd1220237b1e98cb091d1d04c8cd64f4c0
downloadaur-mingw-w64-stb-git.tar.gz
go
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD28
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0572ac1e9f8
--- /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 00000000000..08a602188b7
--- /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
+}