archrelease: copy trunk to extra-x86_64
[arch-packages.git] / protobuf-c / trunk / PKGBUILD
blob18807a7b561fa8a45e997da28d6da53fc66030c8
1 # Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
2 # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
3 # Contributor: Aurélien Wailly <aurelien.wailly@gmail.com>
5 pkgname=protobuf-c
6 pkgver=1.4.1
7 pkgrel=1
8 pkgdesc='Protocol Buffers implementation in C'
9 arch=('x86_64')
10 url='https://github.com/protobuf-c/protobuf-c'
11 license=('BSD')
12 depends=('protobuf')
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')
18 build() {
19   cd "$pkgname-$pkgver"
20   ./configure --prefix=/usr --disable-static
21   make
24 check() {
25   make -C "$pkgname-$pkgver" check
28 package() {
29   cd "$pkgname-$pkgver"
30   make DESTDIR="$pkgdir" install
31   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"