1 # Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
2 # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
3 # Contributor: Aurélien Wailly <aurelien.wailly@gmail.com>
8 pkgdesc='Protocol Buffers implementation in C'
10 url='https://github.com/protobuf-c/protobuf-c'
13 provides=('libprotobuf-c.so')
14 options=('!lto') # https://github.com/protobuf-c/protobuf-c/issues/488
15 source=("$url/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz")
16 sha256sums=('4cc4facd508172f3e0a4d3a8736225d472418aee35b4ad053384b137b220339f')
20 ./configure --prefix=/usr --disable-static
25 make -C "$pkgname-$pkgver" check
30 make DESTDIR="$pkgdir" install
31 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"