Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
Update to 1.12.1
Browse files Browse the repository at this point in the history
git-svn-id: file:///srv/repos/svn-community/svn@929570 9fca08f4-af9d-4005-b8df-a31f2cc04f65
  • Loading branch information
arojas authored and svntogit committed May 10, 2021
1 parent 3aaa321 commit b401e47
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions trunk/PKGBUILD
Expand Up @@ -3,44 +3,39 @@

pkgbase=flatbuffers
pkgname=(flatbuffers python-flatbuffers)
pkgver=1.12.0
pkgrel=3
pkgver=1.12.1
pkgrel=1
pkgdesc='An efficient cross platform serialization library for C++, with support for Java, C# and Go'
arch=(x86_64)
url='https://google.github.io/flatbuffers/'
license=(Apache)
depends=(gcc-libs)
makedepends=(cmake python-setuptools)
source=($pkgbase-$pkgver.tar.gz::https://github.com/google/$pkgbase/archive/v$pkgver.tar.gz)
sha256sums=('62f2223fb9181d1d6338451375628975775f7522185266cd5296571ac152bc45')
source=(https://github.com/google/$pkgbase/archive/v$pkgver/$pkgbase-$pkgver.tar.gz)
sha256sums=('90e6a65ff5b8e9fc225af3a9d7bf4d2e120cfe40c27dfd5527f67c0d4eb5b954')

prepare() {
sed -i 's/-Werror=/-W/g;s/-Werror//g' $pkgname-$pkgver/CMakeLists.txt
}

build() {
cd $pkgbase-$pkgver
cmake . \
cmake -B build -S $pkgbase-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DFLATBUFFERS_BUILD_FLATLIB=OFF \
-DFLATBUFFERS_BUILD_SHAREDLIB=ON
make
cmake --build build

# Python bindings
cd ../$pkgbase-$pkgver/python
cd $pkgbase-$pkgver/python
VERSION=$pkgver python setup.py build
}

check() {
cd $pkgbase-$pkgver
make test
./tests/PythonTest.sh
cmake --build build --target test
}

package_flatbuffers() {
cd $pkgbase-$pkgver
make DESTDIR="$pkgdir" install
install -Dm755 flatc -t "$pkgdir"/usr/bin
DESTDIR="$pkgdir" cmake --install build
}

package_python-flatbuffers() {
Expand Down

0 comments on commit b401e47

Please sign in to comment.