summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDaniel Bermond2023-11-02 11:51:25 -0300
committerDaniel Bermond2023-11-02 11:51:25 -0300
commit71f2e5188aff6b75c53e84e2e11da4efd494d63d (patch)
tree30e503bbc207310d1a076bc3a4fe10845213b3c9 /PKGBUILD
downloadaur-sokol-git.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD23
1 files changed, 23 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..0f3b72b99799
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Daniel Bermond <dbermond@archlinux.org>
+
+pkgname=sokol-git
+pkgver=r2649.bd7fa93
+pkgrel=1
+pkgdesc='Multiple purpose header libraries for C and C++ (git version)'
+arch=('any')
+url='https://github.com/floooh/sokol/'
+license=('custom: zlib')
+makedepends=('git')
+provides=('sokol')
+conflicts=('sokol')
+source=('git+https://github.com/floooh/sokol.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ printf 'r%s.%s' "$(git -C sokol rev-list --count HEAD)" "$(git -C sokol rev-parse --short HEAD)"
+}
+
+package() {
+ install -D -m644 sokol/{,util/}*.h -t "${pkgdir}/usr/include"
+ install -D -m644 sokol/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}