aboutsummaryrefslogblamecommitdiffstats
path: root/main/protobuf-c/APKBUILD
blob: 5f5407acff29aeb5151f9faa33c61f8684a305ed (plain) (tree)
1
2
3
4
5
6
7
8
9
                                  
                                                     
                  
            
        


                                                   
                      
                          
                          
                                                                                                     
         
                                   

         

                      


                                         
                                         
 
            



                      
                  


           
                      
                                      

 
                                                                                                                                                                      
# Contributor: TBK <alpin@jjtc.eu>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=protobuf-c
pkgver=1.3.2
pkgrel=3
pkgdesc="C bindings for Google's Protocol Buffers"
url="https://github.com/protobuf-c/protobuf-c/wiki"
arch="all"
license="BSD-2-Clause"
makedepends="protobuf-dev"
subpackages="$pkgname-dev"
source="https://github.com/protobuf-c/protobuf-c/releases/download/v$pkgver/protobuf-c-$pkgver.tar.gz
	"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info

	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="d94d2c6f11b3e482fd3d1b8cef5b2d896ad37a679068f393d29916311deadc5b6b86f946b046d7ee49260b0223e3128e052dc76324b4a8cd6ea184d566ad9aa6  protobuf-c-1.3.2.tar.gz"