aboutsummaryrefslogblamecommitdiffstats
path: root/community/log4cplus/APKBUILD
blob: 27ff991fad92bbefabfc24650ca0333990a64955 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                              
                 
            
        
                                   
                                                    
          
                    
                        
                                                           
                                                                             

         






                                         
                                                   
                              
                                 
                                       



            






                                                      


           


                                      





                                      
                                                                                                                                                                     
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=log4cplus
pkgver=2.0.6
pkgrel=0
pkgdesc="Logging Framework for C++"
url="https://sourceforge.net/p/log4cplus/wiki/Home/"
arch="all"
license="Apache-2.0"
checkdepends="findutils"
subpackages="$pkgname-static $pkgname-dev $pkgname-unicode"
source="https://downloads.sourceforge.net/log4cplus/log4cplus-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-implicit-initialization \
		--enable-lto \
		--enable-static \
		--with-working-c-locale
	make
}

check() {
	make check || {
		find -name testsuite.log -type f -ls \
			-printf '%P {{{\n' \
			-exec cat -v -n '{}' ';' \
			-printf '}}} %P\n'
		return 1
	}
}

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

unicode() {
	pkgdesc="$pkgdesc (Unicode)"

	amove ./usr/lib/liblog4cplusU*
}

sha512sums="a51dea708a397d72bd554ae36bab612c24c0464cb2f3ff323a4e84c3144ee7bfa8843d43528709922ed379e4bfe8bc96b10f21c2f65e4b835b07f8ffefc326e7  log4cplus-2.0.6.tar.xz"