wok-current annotate podofo/receipt @ rev 25483
created recipe for py3k-six
author | Hans-G?nter Theisgen |
---|---|
date | Mon Oct 17 07:54:33 2022 +0100 (2022-10-17) |
parents | c903329801b8 |
children | 69e1e705f038 |
rev | line source |
---|---|
pascal@3902 | 1 # SliTaz package receipt. |
pascal@3902 | 2 |
pascal@3902 | 3 PACKAGE="podofo" |
Hans-G?nter@24275 | 4 VERSION="0.9.7" |
pascal@3902 | 5 CATEGORY="office" |
pascal@3902 | 6 SHORT_DESC="PDF library." |
pascal@3902 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@25457 | 9 WEB_SITE="https://sourceforge.net/projects/podofo" |
Hans-G?nter@21691 | 10 |
pascal@3902 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@3902 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
Hans-G?nter@21691 | 13 |
Hans-G?nter@22354 | 14 DEPENDS="fontconfig freetype gcc-lib-base jpeg libcrypto libpng |
Hans-G?nter@22354 | 15 tiff zlib" |
Hans-G?nter@21691 | 16 BUILD_DEPENDS="cmake fontconfig-dev freetype-dev jpeg-dev \ |
Hans-G?nter@22354 | 17 libcrypto-dev libpng-dev tiff-dev zlib-dev" |
pascal@3902 | 18 |
pascal@25457 | 19 # What is the latest version available today? |
pascal@24082 | 20 current_version() |
pascal@24082 | 21 { |
pascal@24082 | 22 wget -O - https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE 2>/dev/null | \ |
pascal@24082 | 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24082 | 24 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q" |
pascal@24082 | 25 } |
pascal@24082 | 26 |
pascal@3902 | 27 # Rules to configure and make the package. |
pascal@3902 | 28 compile_rules() |
pascal@3902 | 29 { |
Hans-G?nter@24275 | 30 mkdir _build |
Hans-G?nter@24275 | 31 cd _build |
Hans-G?nter@24275 | 32 cmake .. \ |
Hans-G?nter@24275 | 33 -D CMAKE_INSTALL_PREFIX=/usr \ |
Hans-G?nter@24275 | 34 -D CMAKE_BUILD_TYPE=RELEASE \ |
Hans-G?nter@24275 | 35 -D FREETYPE_INCLUDE_DIR=/usr/include/freetype2 \ |
Hans-G?nter@24275 | 36 -D PODOFO_HAVE_LUA=FALSE \ |
Hans-G?nter@24275 | 37 -D PODOFO_BUILD_STATIC:BOOL=TRUE \ |
Hans-G?nter@24275 | 38 -D PODOFO_BUILD_SHARED:BOOL=TRUE && |
Hans-G?nter@24275 | 39 make && |
Hans-G?nter@24275 | 40 make DESTDIR=$DESTDIR install |
pascal@3902 | 41 } |
pascal@3902 | 42 |
pascal@3902 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3902 | 44 genpkg_rules() |
pascal@3902 | 45 { |
Hans-G?nter@24275 | 46 cook_copy_folders bin |
Hans-G?nter@24275 | 47 cook_copy_files *.so* |
pascal@3902 | 48 } |