summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-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..62b1d39c622
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = zstr-git
+ pkgdesc = A C++ header-only ZLib wrapper
+ pkgver = r38.d9e0254
+ pkgrel = 1
+ url = https://github.com/sandsmark/zstr
+ arch = any
+ license = MIT
+ makedepends = git
+ depends = zlib
+ provides = zstr
+ conflicts = zstr
+ source = git+https://github.com/sandsmark/zstr.git
+ md5sums = SKIP
+
+pkgname = zstr-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5c4b3b109de
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Martin Sandsmark <martin.sandsmark@kde.org>
+
+pkgname=zstr-git
+pkgver=r38.d9e0254
+pkgrel=1
+pkgdesc='A C++ header-only ZLib wrapper'
+arch=('any')
+url='https://github.com/sandsmark/zstr'
+license=('MIT')
+depends=('zlib')
+makedepends=('git')
+conflicts=(zstr)
+provides=(zstr)
+source=('git+https://github.com/sandsmark/zstr.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd zstr
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd zstr
+ install -dm755 "${pkgdir}/usr/include/"
+ install -m644 src/zstr.hpp "${pkgdir}/usr/include/zstr.hpp"
+ install -m644 src/zstr.hpp "${pkgdir}/usr/include/strict_fstream.hpp"
+ install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/zstr-git/LICENSE
+}