mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 00:54:37 +08:00
27 lines
574 B
Bash
27 lines
574 B
Bash
pkgname=protobuf-c
|
|
pkgver=1.1.1
|
|
pkgrel=1
|
|
pkgdesc='Protocol Buffers implementation in C'
|
|
arch=('x86_64')
|
|
url='https://github.com/protobuf-c/protobuf-c'
|
|
license=('BSD')
|
|
depends=('protobuf')
|
|
source=($url/releases/download/v$pkgver/protobuf-c-$pkgver.tar.gz)
|
|
md5sums=('41d437677ea16f9d3611d98841c4af3b')
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
./configure --prefix=/usr --disable-static
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make -C $pkgname-$pkgver check
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|