44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
# Template file for 'podofo'
|
|
pkgname=podofo
|
|
version=0.10.4
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DPODOFO_BUILD_STATIC=FALSE -DPODOFO_BUILD_TOOLS=TRUE
|
|
-DPODOFO_BUILD_TEST=TRUE"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="fontconfig-devel libidn-devel openssl-devel lua53-devel tiff-devel
|
|
libxml2-devel zlib-devel libjpeg-turbo-devel libpng-devel freetype-devel"
|
|
short_desc="Library to work with the PDF file format"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="GPL-2.0-or-later, LGPL-2.1-or-later"
|
|
homepage="https://github.com/podofo/podofo"
|
|
distfiles="https://github.com/podofo/podofo/archive/refs/tags/${version}.tar.gz"
|
|
checksum=8800e16b8bd77cdb8881efca9d516976ec839cf736d27940977cc7f72d6d09d3
|
|
# disable_parallel_build=yes
|
|
|
|
post_install() {
|
|
local _f
|
|
for _f in man/*.1; do
|
|
vman "$_f"
|
|
done
|
|
}
|
|
|
|
libpodofo_package() {
|
|
replaces="podofo<0.9.3_1"
|
|
short_desc+=" - shared library"
|
|
pkg_install() {
|
|
vmove usr/lib/*.so.*
|
|
}
|
|
}
|
|
|
|
libpodofo-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="libpodofo-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/share/podofo/*.cmake"
|
|
}
|
|
}
|