summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Sun2018-11-09 19:41:58 -0500
committerAndrew Sun2018-11-09 19:41:58 -0500
commit31e7ce6f39e56600880ce2e82c6ac1725bb7d55e (patch)
tree12d5852aace87b2af34a85a74c51529bc8b43119
parent5770f1d7814a3396e01657ce61c50dcad591c90f (diff)
downloadaur-31e7ce6f39e56600880ce2e82c6ac1725bb7d55e.tar.gz
flatcc: update to 0.5.2
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD34
2 files changed, 20 insertions, 23 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 493768ce592..5d321f474e8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,15 @@
-# Generated by mksrcinfo v8
-# Thu Aug 3 14:34:23 UTC 2017
pkgbase = flatcc
pkgdesc = FlatBuffers Compiler and Library in C for C
- pkgver = 0.4.3
+ pkgver = 0.5.2
pkgrel = 1
url = https://github.com/dvidelabs/flatcc
arch = i686
arch = x86_64
license = Apache
makedepends = cmake
- makedepends = make
options = staticlibs
- source = flatcc-0.4.3.tar.gz::https://codeload.github.com/dvidelabs/flatcc/tar.gz/v0.4.3
- sha256sums = c0e9e40ddf90caa0cfefc3f3ce73713e6b9ac5eba4b2e946ae20dee0a559f82e
+ source = flatcc-0.5.2.tar.gz::https://github.com/dvidelabs/flatcc/archive/v0.5.2.tar.gz
+ sha256sums = 02dac93d3daf8d0a290aa8711a9b8a53f047436ec5331adb1972389061ec6615
pkgname = flatcc
diff --git a/PKGBUILD b/PKGBUILD
index fa19861b265..325f7e585ed 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,41 +1,41 @@
-# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+# Maintainer: Andrew Sun <adsun701@gmail.com>
+# Contributor: Andy Weidenbaum <archbaum@gmail.com>
pkgname=flatcc
-pkgver=0.4.3
+pkgver=0.5.2
pkgrel=1
pkgdesc="FlatBuffers Compiler and Library in C for C"
arch=('i686' 'x86_64')
-makedepends=('cmake' 'make')
+makedepends=('cmake')
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=('c0e9e40ddf90caa0cfefc3f3ce73713e6b9ac5eba4b2e946ae20dee0a559f82e')
+source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/dvidelabs/flatcc/archive/v${pkgver}.tar.gz")
+sha256sums=('02dac93d3daf8d0a290aa8711a9b8a53f047436ec5331adb1972389061ec6615')
build() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ mkdir -p build && cd build
- msg2 'Building...'
- mkdir -p build/install && cd build/install
cmake \
- ../.. \
-DBUILD_SHARED_LIBS=on \
-DFLATCC_ALLOW_WERROR=off \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DFLATCC_INSTALL=on
+ -DFLATCC_INSTALL=on \
+ ..
+
make
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "${srcdir}/${pkgname}-${pkgver}"
- msg2 'Installing license...'
- install -Dm 644 LICENSE NOTICE -t "$pkgdir/usr/share/licenses/$pkgname"
+ install -Dm644 LICENSE NOTICE -t "${pkgdir}/usr/share/licenses/${pkgname}"
- msg2 'Installing documentation...'
- install -Dm 644 *.md doc/* -t "$pkgdir/usr/share/doc/$pkgname"
+ install -Dm644 *.md doc/* -t "${pkgdir}/usr/share/doc/${pkgname}"
- msg2 'Installing...'
- make DESTDIR="$pkgdir" install -C build/install/
+ cd build
+ make DESTDIR="${pkgdir}" install
}