aboutsummaryrefslogblamecommitdiffstats
path: root/testing/libzim/APKBUILD
blob: 5e73459fefdf985614bf7b6f743b086fb84816b3 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                
            
        


                                                         
                          
                                                                           
                                           
                                       
                                                                                          

         

                                     



                                         
                                            




                        
                            


           

                                                 


                                                                      
                                                                                                                                                                  
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=libzim
pkgver=6.0.2
pkgrel=2
pkgdesc="Reference implementation of the ZIM file format"
url="https://openzim.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="icu-dev libexecinfo-dev meson xapian-core-dev xz-dev zlib-dev"
checkdepends="cython gtest-dev python3-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/openzim/libzim/archive/$pkgver.tar.gz"

build() {
	LDFLAGS="$LDFLAGS -lexecinfo"
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=debugoptimized \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install

	install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

sha512sums="4014980ba0ae6db36f729bb86665d4829ce6f3f2f45e5e49c24acd0a8b948afc9dd2ac89f245f7cdd38d74cb72f7bd3385ba64ac631f5dbd2281b34ef02a43ae  libzim-6.0.2.tar.gz"