aboutsummaryrefslogblamecommitdiffstats
path: root/community/libe-book/APKBUILD
blob: 4f534e19e38cc84f9a9be080b6cfd087d32ab0b5 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                              
            
        
                                                           
                                                
          
                 
                                                                                  
                                        
                                                      
                                                                                                       
 
                                   
 
           
                       



                         
                      

                                                      







                                           






                                


           
                      
                                      






                                             
                                                                                                                                                                      
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libe-book
pkgver=0.1.3
pkgrel=8
pkgdesc="Import filter and tools for various ebook formats"
url="https://sourceforge.net/projects/libebook/"
arch="all"
license="MPL-2.0"
depends_dev="boost-dev icu-dev librevenge-dev libxml2-dev zlib-dev liblangtag-dev"
makedepends="$depends_dev doxygen gperf"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="https://downloads.sourceforge.net/project/libebook/libe-book-$pkgver/libe-book-$pkgver.tar.bz2"

builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	cd "$builddir"
	# boost-1.59
	export CPPFLAGS=-DBOOST_ERROR_CODE_HEADER_ONLY
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-werror
	make
}

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

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

tools() {
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}

sha512sums="9afa2949f702a34fd6278145ce8d18d504326ed5a103bbc872d0493fcf3e2166d41d094bb0d74b80aa913ca6d082f5bd3259799a4a3c7359331ccdfa1e029a21  libe-book-0.1.3.tar.bz2"