summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2016-08-18 08:30:51 -0700
committerAndy Weidenbaum2016-08-18 08:30:51 -0700
commit45f791706e7bdf2ea2a0a42717f83be601c9d6de (patch)
treefd9cda1d6485148e0a268a0d042796be098f6f18
parentda67c0ccac8998423d10866da0506f2132e80d35 (diff)
downloadaur-45f791706e7bdf2ea2a0a42717f83be601c9d6de.tar.gz
update pkgver to 0.3.4, cmake/make
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD21
2 files changed, 17 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 60d406523c0..c4e7a11e679 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,18 @@
# Generated by mksrcinfo v8
-# Tue Apr 26 16:39:33 UTC 2016
+# Thu Aug 18 15:30:19 UTC 2016
pkgbase = flatcc
pkgdesc = FlatBuffers Compiler and Library in C for C
- pkgver = 0.3.3
+ pkgver = 0.3.4
pkgrel = 1
url = https://github.com/dvidelabs/flatcc
arch = i686
arch = x86_64
license = Apache
makedepends = cmake
- makedepends = ninja
+ makedepends = make
options = staticlibs
- source = flatcc-0.3.3.tar.gz::https://codeload.github.com/dvidelabs/flatcc/tar.gz/v0.3.3
- sha256sums = 14903f53536947295214f7c1537b6ff933565453a440e610f0b85c3fb3fe6642
+ source = flatcc-0.3.4.tar.gz::https://codeload.github.com/dvidelabs/flatcc/tar.gz/v0.3.4
+ sha256sums = 6ad97168aa02d0ece1a705428008a404eea89af5109d6e099197477fc08303eb
pkgname = flatcc
diff --git a/PKGBUILD b/PKGBUILD
index d7060c6346e..190471ba2c7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,29 @@
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
pkgname=flatcc
-pkgver=0.3.3
+pkgver=0.3.4
pkgrel=1
pkgdesc="FlatBuffers Compiler and Library in C for C"
arch=('i686' 'x86_64')
-makedepends=('cmake' 'ninja')
+makedepends=('cmake' 'make')
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')
+sha256sums=('6ad97168aa02d0ece1a705428008a404eea89af5109d6e099197477fc08303eb')
build() {
cd "$srcdir/$pkgname-$pkgver"
msg2 'Building...'
- ./scripts/build.sh
+ mkdir -p build/install && cd build/install
+ cmake \
+ ../.. \
+ -DBUILD_SHARED_LIBS=on \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DFLATCC_INSTALL=on
+ make
}
package() {
@@ -29,9 +36,5 @@ package() {
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"
+ make DESTDIR="$pkgdir" install -C build/install/
}