summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2016-04-26 09:39:42 -0700
committerAndy Weidenbaum2016-04-26 09:39:42 -0700
commitda67c0ccac8998423d10866da0506f2132e80d35 (patch)
tree7db432446528d78d14e790166d5731f22a3019df
downloadaur-da67c0ccac8998423d10866da0506f2132e80d35.tar.gz
Initial import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD37
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..60d406523c0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Tue Apr 26 16:39:33 UTC 2016
+pkgbase = flatcc
+ pkgdesc = FlatBuffers Compiler and Library in C for C
+ pkgver = 0.3.3
+ pkgrel = 1
+ url = https://github.com/dvidelabs/flatcc
+ arch = i686
+ arch = x86_64
+ license = Apache
+ makedepends = cmake
+ makedepends = ninja
+ options = staticlibs
+ source = flatcc-0.3.3.tar.gz::https://codeload.github.com/dvidelabs/flatcc/tar.gz/v0.3.3
+ sha256sums = 14903f53536947295214f7c1537b6ff933565453a440e610f0b85c3fb3fe6642
+
+pkgname = flatcc
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d7060c6346e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+
+pkgname=flatcc
+pkgver=0.3.3
+pkgrel=1
+pkgdesc="FlatBuffers Compiler and Library in C for C"
+arch=('i686' 'x86_64')
+makedepends=('cmake' 'ninja')
+url="https://github.com/dvidelabs/flatcc"
+license=('Apache')
+options=('staticlibs')
+source=($pkgname-$pkgver.tar.gz::https://codeload.github.com/dvidelabs/$pkgname/tar.gz/v$pkgver)
+sha256sums=('14903f53536947295214f7c1537b6ff933565453a440e610f0b85c3fb3fe6642')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ msg2 'Building...'
+ ./scripts/build.sh
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ msg2 'Installing license...'
+ install -Dm 644 LICENSE NOTICE -t "$pkgdir/usr/share/licenses/$pkgname"
+
+ msg2 'Installing documentation...'
+ install -Dm 644 *.md doc/* -t "$pkgdir/usr/share/doc/$pkgname"
+
+ msg2 'Installing...'
+ find bin -mindepth 1 -maxdepth 1 -type f -exec \
+ install -Dm 755 -t "$pkgdir/usr/bin" '{}' +
+ find lib -mindepth 1 -maxdepth 1 -type f -exec \
+ install -Dm 644 -t "$pkgdir/usr/lib" '{}' +
+ cp -dpr --no-preserve=ownership include "$pkgdir/usr"
+}