wok view podofo/receipt @ rev 24187
updated perl-compress-raw-zlib (2.093 -> 2.101)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 14:17:26 2021 +0100 (2021-12-31) |
parents | fc5c92e2aa0c |
children | c903329801b8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="podofo"
4 VERSION="0.9.6"
5 CATEGORY="office"
6 SHORT_DESC="PDF library."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://sourceforge.net/projects/podofo/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="fontconfig freetype gcc-lib-base jpeg libcrypto libpng
15 tiff zlib"
16 BUILD_DEPENDS="cmake fontconfig-dev freetype-dev jpeg-dev \
17 libcrypto-dev libpng-dev tiff-dev zlib-dev"
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 cmake . \
30 -DCMAKE_INSTALL_PREFIX=/usr \
31 -DCMAKE_BUILD_TYPE=RELEASE \
32 -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \
33 -DPODOFO_HAVE_LUA=FALSE \
34 -DPODOFO_BUILD_STATIC:BOOL=TRUE \
35 -DPODOFO_BUILD_SHARED:BOOL=TRUE &&
36 make -j1 &&
37 make -j1 DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/lib/*.so* $fs/usr/lib
47 }