wok-current annotate fbreader/receipt @ rev 25724

Up audacity to 3.0.2, fix openssh/wxWidgets build
author Stanislas Leduc <shann@slitaz.org>
date Tue Jun 25 14:51:14 2024 +0000 (5 months ago)
parents c15fedfb9582
children
rev   line source
devl547@5224 1 # SliTaz package receipt.
devl547@5224 2
devl547@5224 3 PACKAGE="fbreader"
devl547@5224 4 VERSION="0.12.10"
devl547@5224 5 CATEGORY="utilities"
devl547@5224 6 SHORT_DESC="E-Book Reader. Supports many e-book formats."
devl547@5224 7 MAINTAINER="devl547@gmail.com"
pascal@15594 8 LICENSE="GPL3"
devl547@5224 9 TARBALL="$PACKAGE-sources-$VERSION.tgz"
pascal@25540 10 WEB_SITE="https://fbreader.org/"
pascal@25443 11 WGET_URL="https://people.salixos.org/djemos/fbreader-gtk/$TARBALL"
pascal@15593 12
devl547@5224 13 BUILD_DEPENDS="expat-dev liblinebreak-dev curl-dev fribidi-dev bzip2-dev sqlite-dev gtk+-dev"
devl547@5224 14 DEPENDS="expat liblinebreak curl fribidi bzip2 sqlite gtk+"
devl547@5224 15
pascal@24540 16 # What is the latest version available today?
pascal@24540 17 current_version()
pascal@24540 18 {
pascal@24540 19 wget -O - https://github.com/geometer/FBReader/tags 2>/dev/null | \
pascal@24540 20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24540 21 }
pascal@24540 22
devl547@5224 23 # Rules to configure and make the package.
devl547@5224 24 compile_rules()
devl547@5224 25 {
pascal@5907 26 # GCC 4.5.0 fix
pascal@5907 27 sed -i 's/Library::Library /Library /' fbreader/src/library/Library.cpp
pascal@23083 28
pascal@23083 29 # CUPS 2.3 fix
pascal@23083 30 sed -i '/CURLE_SSL_CACERT:/{NNd}' \
pascal@23083 31 zlibrary/core/src/unix/curl/ZLCurlNetworkManager.cpp
pascal@23083 32
devl547@5224 33 echo "UI_TYPE = gtk" >> makefiles/target.mk
devl547@5224 34 echo "TARGET_STATUS = release" >> makefiles/target.mk
devl547@5224 35 make &&
pascal@15593 36 make DESTDIR=$DESTDIR install
devl547@5224 37 }
devl547@5224 38
devl547@5224 39 # Rules to gen a SliTaz package suitable for Tazpkg.
devl547@5224 40 genpkg_rules()
devl547@5224 41 {
devl547@5224 42 mkdir -p $fs/usr
pascal@15593 43 cp -a $install/usr/bin $fs/usr
pascal@15593 44 cp -a $install/usr/lib $fs/usr
pascal@15593 45 cp -a $install/usr/share $fs/usr
devl547@5224 46 }