wok-current annotate font-manager/receipt @ rev 25024
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 18 20:10:17 2022 +0000 (2022-05-18) |
parents | 5ea0ce1cecc0 |
children |
rev | line source |
---|---|
al@13649 | 1 # SliTaz package receipt. |
al@13649 | 2 |
al@13649 | 3 PACKAGE="font-manager" |
al@13649 | 4 VERSION="0.5.7" |
al@13649 | 5 CATEGORY="utilities" |
Hans-G?nter@22177 | 6 SHORT_DESC="A font management application for the GNOME desktop." |
al@13649 | 7 MAINTAINER="al.bobylev@gmail.com" |
pascal@14999 | 8 LICENSE="GPL3" |
Hans-G?nter@22177 | 9 WEB_SITE="https://fontmanager.github.io/" |
al@13649 | 10 |
Hans-G?nter@22177 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22177 | 12 WGET_URL="https://github.com/FontManager/$PACKAGE/archive/$VERSION.tar.gz" |
Hans-G?nter@22177 | 13 |
Hans-G?nter@22177 | 14 DEPENDS="fontconfig freetype libxml2-python pycairo pygtk pygobject python \ |
Hans-G?nter@22177 | 15 sqlite" |
Hans-G?nter@22177 | 16 BUILD_DEPENDS="bash fontconfig-dev freetype-dev glib-dev gnome-doc-utils |
Hans-G?nter@22177 | 17 intltool pango-dev python-dev sqlite-dev" |
al@13649 | 18 |
pascal@24055 | 19 current_version() |
pascal@24055 | 20 { |
pascal@24055 | 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 22 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 23 } |
pascal@24055 | 24 |
al@13649 | 25 # Rules to configure and make the package. |
al@13649 | 26 compile_rules() |
al@13649 | 27 { |
Hans-G?nter@22177 | 28 export CONFIG_SHELL=/bin/bash |
Hans-G?nter@22177 | 29 export SHELL=/bin/bash |
Hans-G?nter@22177 | 30 |
Hans-G?nter@22178 | 31 chmod u+x configure |
Hans-G?nter@22178 | 32 chmod u+x install-sh |
Hans-G?nter@22178 | 33 chmod u+x po/pogen.sh |
Hans-G?nter@22178 | 34 |
Hans-G?nter@22177 | 35 sed -i 's|FT_XFREE86_H|&\n#define W_OK (2)|' \ |
Hans-G?nter@22177 | 36 src/lib/fm-fontutils.c |
pascal@24295 | 37 sed -i 's|_LIBS)|& |g' Makefile.* |
Hans-G?nter@22177 | 38 ./configure \ |
Hans-G?nter@22177 | 39 --enable-bytecode \ |
Hans-G?nter@22177 | 40 --enable-nls \ |
Hans-G?nter@22177 | 41 $CONFIGURE_ARGS && |
al@13649 | 42 make && |
al@13649 | 43 make DESTDIR=$install install |
al@13649 | 44 |
al@13649 | 45 # fix translations |
Hans-G?nter@22177 | 46 for p in $(ls po | grep -e '.po$') |
Hans-G?nter@22177 | 47 do |
al@13649 | 48 msgfmt $src/po/$p -o $install/usr/share/locale/${p%.po}/LC_MESSAGES/font-manager.mo |
Hans-G?nter@22177 | 49 done |
al@13649 | 50 } |
al@13649 | 51 |
al@13649 | 52 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@13649 | 53 genpkg_rules() |
al@13649 | 54 { |
al@13649 | 55 cp -a $install/* $fs |
Hans-G?nter@22177 | 56 |
al@13649 | 57 # fix paths |
al@13649 | 58 sed -i "s|$install||g" $fs/usr/bin/* $fs/usr/share/font-manager/*.py |
al@13649 | 59 # remove help (need absent yelp to show) |
al@13649 | 60 rm -rf $fs/usr/share/font-manager/help |
al@13649 | 61 } |