summaryrefslogblamecommitdiff
path: root/user/poppler/APKBUILD
blob: ae413f3ab530192085e078407d759e9c8bd16af8 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                      
               
              
        


                                                 
                                                   
                  
          


                                                                              
                                 

                                                                    
 








                      


                      
 
         
                       


                                                   
                                                      

                     


           
                                               
















                                                                 
                                                                                                                                                                     
# Maintainer: Zach van Rijn <me@zv.io>
pkgname=poppler
pkgver=22.11.0
pkgrel=0
pkgdesc="PDF rendering library based on xpdf 3.0"
url="https://poppler.freedesktop.org/"
arch="all"
options="!check"  # Tests only cover Qt5 component.
license="GPL-2.0+"
depends=""
depends_dev="cairo-dev glib-dev"
makedepends="$depends_dev libjpeg-turbo-dev cairo-dev libxml2-dev openjpeg-dev
	fontconfig-dev gobject-introspection-dev lcms2-dev libpng-dev tiff-dev
	zlib-dev boost-dev cmake"
subpackages="$pkgname-dev $pkgname-doc $pkgname-utils $pkgname-glib"
source="https://poppler.freedesktop.org/poppler-$pkgver.tar.xz"

# secfixes:
#   0.77.0-r0:
#     - CVE-2019-9200
#     - CVE-2019-9631
#     - CVE-2019-9903
#     - CVE-2019-10872
#     - CVE-2019-10873
#     - CVE-2019-11026
#     - CVE-2019-12293
#   0.80.0-r0:
#     - CVE-2019-9959
#     - CVE-2019-14494

build() {
	cmake -Bbuild \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_LIBDIR=/usr/lib \
		-DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
		.
	make -C build
}

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

utils() {
	pkgdesc="Poppler's xpdf-workalike command line utilities"
	install -d "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

glib() {
	pkgdesc="Glib wrapper for poppler"
	replaces="poppler-gtk"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libpoppler-glib.so.* \
		"$pkgdir"/usr/lib/girepository* \
		"$subpkgdir"/usr/lib/
}

sha512sums="a173681782b4f6c4528140ce73d1f4c0ca89a018eab7197d69f1a76ab3e6115c7c03f82e99a8b3e5729c0f75b82896e59b38762ed460dd29b704ab4a03926e7b  poppler-22.11.0.tar.xz"