aboutsummaryrefslogblamecommitdiffstats
path: root/main/jansson/APKBUILD
blob: 0af8c73445dfd74c9928fd4c19e235c525cbe598 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                   
               
           
        



                                   
                          

                                                                       

         
                      



                                 


                                           

                                    

 

                      
                  

 
           
                      
                                      

 
                                                                                                                                                                   
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=jansson
pkgver=2.11
pkgrel=0
pkgdesc="lightweight JSON library"
url="http://www.digip.org/jansson/"
arch="all"
license="MIT"
subpackages="$pkgname-dev"
source="http://www.digip.org/jansson/releases/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

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

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

sha512sums="3a9ef8c470d203ef65f214d979d0a8dfc034ff1417b2af7071564c804e33d51f7b30915c7d62ac2156092aef756e4cdc3298a67205b913ffc312dcafeeefc1dc  jansson-2.11.tar.bz2"