wok annotate xfe/receipt @ rev 25096
created recipe for wordgrinder
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jun 18 15:13:12 2022 +0100 (2022-06-18) |
parents | 325f04e24eff |
children | 29df00e1e19d |
rev | line source |
---|---|
pankso@2781 | 1 # SliTaz package receipt. |
pankso@2781 | 2 |
pankso@2781 | 3 PACKAGE="xfe" |
Hans-G?nter@23747 | 4 VERSION="1.43.2" |
pankso@2781 | 5 CATEGORY="system-tools" |
Hans-G?nter@23747 | 6 TAGS="file-manager" |
pankso@2781 | 7 SHORT_DESC="Xfe File manager and utility using Fox toolkit." |
pankso@2781 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 9 LICENSE="GPL2" |
Hans-G?nter@23747 | 10 WEB_SITE="http://roland65.free.fr/xfe/" |
Hans-G?nter@23747 | 11 |
pankso@2781 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
erjo@11659 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@16086 | 14 |
pankso@16088 | 15 SUGGESTED="adie calculator shutterbug xfe-extras xfi" |
Hans-G?nter@23747 | 16 DEPENDS="fox jpeg libpng tiff xcb-util xorg-libXft" |
Hans-G?nter@23747 | 17 BUILD_DEPENDS="automake fox-dev jpeg-dev libpng-dev tiff-dev |
Hans-G?nter@23747 | 18 xcb-util-dev xorg-libXft-dev" |
Hans-G?nter@23747 | 19 |
pankso@16086 | 20 GENERIC_MENUS="no" |
erjo@11659 | 21 |
Hans-G?nter@23747 | 22 #HOST_ARCH="i486 arm" |
Hans-G?nter@23747 | 23 |
pankso@16086 | 24 # Handle cross compilation. |
pankso@16086 | 25 case "$ARCH" in |
pankso@16086 | 26 i?86) BUILD_DEPENDS="$BUILD_DEPENDS intltool" ;; |
pankso@16086 | 27 arm) |
pankso@16088 | 28 export LDLAGS="-L/cross/$ARCH/sysroot/usr/lib" ;; |
pankso@16086 | 29 esac |
pankso@2781 | 30 |
pascal@24108 | 31 current_version() |
pascal@24108 | 32 { |
pascal@24108 | 33 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \ |
pascal@24108 | 34 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24108 | 35 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|;q" |
pascal@24108 | 36 } |
pascal@24108 | 37 |
pankso@2781 | 38 # Rules to configure and make the package. |
pankso@2781 | 39 compile_rules() |
pankso@2781 | 40 { |
pascal@24760 | 41 autoreconf -i |
Hans-G?nter@24758 | 42 |
mojo@17530 | 43 # Required by freetype-dev-2.4.11 |
mojo@17530 | 44 sed -i 's|config/ftheader.h|freetype/config/ftheader.h|' configure.ac |
Hans-G?nter@23747 | 45 export LDFLAGS="$LDFLAGS -lrt" |
Hans-G?nter@23747 | 46 |
Hans-G?nter@23747 | 47 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@23747 | 48 make && |
Hans-G?nter@23747 | 49 make install |
pankso@2781 | 50 } |
pankso@2781 | 51 |
pankso@2781 | 52 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2781 | 53 genpkg_rules() |
pankso@2781 | 54 { |
Hans-G?nter@23747 | 55 mkdir -p $fs/usr/bin |
Hans-G?nter@23747 | 56 mkdir -p $fs/usr/share/xfe/icons |
Hans-G?nter@23747 | 57 |
Hans-G?nter@23747 | 58 cp -a $install/usr/bin/$PACKAGE $fs/usr/bin |
Hans-G?nter@23747 | 59 cp -a $install/usr/share/xfe/xferc $fs/usr/share/xfe |
Hans-G?nter@23747 | 60 sed -i 's/gnomeblue-theme/tango-theme/' $fs/usr/share/xfe/xferc |
Hans-G?nter@23747 | 61 |
pankso@2781 | 62 # Tango/Gnome icons theme only |
pascal@15000 | 63 cp -a $install/usr/share/xfe/icons/tango-theme \ |
Hans-G?nter@23747 | 64 $fs/usr/share/xfe/icons |
pascal@15000 | 65 cp -a $install/usr/share/xfe/icons/gnome-theme \ |
Hans-G?nter@23747 | 66 $fs/usr/share/xfe/icons |
pankso@2781 | 67 } |