mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 03:34:38 +08:00
31 lines
688 B
Bash
31 lines
688 B
Bash
# Platform Packages for Chakra, part of chakraos.org
|
|
#
|
|
# maintainer Jeff Huang s8321414[at]gmail[dot]com>
|
|
|
|
pkgname=protobuf-c
|
|
pkgver=1.0.2
|
|
pkgrel=1
|
|
pkgdesc='Protocol Buffers implementation in C'
|
|
arch=('i686' '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=('42f03767ddbd1dbe26cce10bc6e08c84')
|
|
|
|
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
|
|
}
|