summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD34
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d93954690e5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = libserdes-git
+ pkgdesc = Schema-based serializer/deserializer C/C++ library with support for Avro and the Confluent Platform Schema Registry.
+ pkgver = r126.b259d15
+ pkgrel = 1
+ url = https://github.com/confluentinc/libserdes
+ arch = x86_64
+ license = APACHE2
+ makedepends = git
+ depends = glibc
+ depends = jansson
+ depends = avro-c
+ depends = curl
+ provides = libserdes
+ conflicts = libserdes
+ source = git+https://github.com/confluentinc/libserdes
+ sha256sums = SKIP
+
+pkgname = libserdes-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b2b75545b78
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Chris Coggburn <noderat at gmail dot com>
+
+pkgname=libserdes-git
+pkgver=r126.b259d15
+pkgrel=1
+pkgdesc='Schema-based serializer/deserializer C/C++ library with support for Avro and the Confluent Platform Schema Registry.'
+url='https://github.com/confluentinc/libserdes'
+license=('APACHE2')
+source=(git+https://github.com/confluentinc/libserdes)
+arch=(x86_64)
+depends=(glibc jansson avro-c curl)
+conflicts=(libserdes)
+provides=(libserdes)
+makedepends=(git)
+sha256sums=('SKIP')
+
+pkgver() {
+ cd libserdes
+ echo r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+build() {
+ cd libserdes
+ # Use this line to compile with debugging symbols
+ # ./configure --prefix=/usr --debug
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd libserdes
+ make install DESTDIR="$pkgdir"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}