summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChris Coggburn2020-04-16 10:13:54 -0600
committerChris Coggburn2020-04-16 10:13:54 -0600
commitab33a4eef0b54162cbadeaa63db7ce25406cb875 (patch)
tree51ab16316b0551161dd7b9979be010b075ef83d1 /PKGBUILD
downloadaur-ab33a4eef0b54162cbadeaa63db7ce25406cb875.tar.gz
Initial libserdes-git release
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
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"
+}