wok annotate giblib/receipt @ rev 25805
created recipe for xfce4-weather-plugin
author | Hans-G?nter Theisgen |
---|---|
date | Wed Nov 13 15:24:31 2024 +0100 (13 days ago) |
parents | 69e1e705f038 |
children |
rev | line source |
---|---|
mallory@1133 | 1 # SliTaz package receipt |
mallory@1133 | 2 |
mallory@1133 | 3 PACKAGE="giblib" |
mallory@1133 | 4 VERSION="1.2.4" |
mallory@1133 | 5 CATEGORY="graphics" |
Hans-G?nter@25030 | 6 SHORT_DESC="Giblib graphics library." |
mallory@1133 | 7 MAINTAINER="mallory@sweetpeople.org" |
pascal@15600 | 8 LICENSE="MIT" |
pascal@25510 | 9 WEB_SITE="https://freshmeat.sourceforge.net/projects/giblib/" |
Hans-G?nter@25030 | 10 |
mallory@1133 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24978 | 12 WGET_URL="https://github.com/cbane/giblib/archive/v$VERSION.tar.gz" |
Hans-G?nter@25030 | 13 |
Hans-G?nter@25030 | 14 DEPENDS="freetype imlib2 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext" |
Hans-G?nter@25030 | 15 BUILD_DEPENDS="freetype-dev imlib2-dev xorg-xproto xorg-libXext-dev" |
Hans-G?nter@25030 | 16 |
pankso@16083 | 17 HOST_ARCH="i486 arm" |
mallory@1133 | 18 |
pascal@25063 | 19 # What is the latest version available today? |
pascal@25063 | 20 current_version() |
pascal@25063 | 21 { |
pascal@25063 | 22 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@25063 | 23 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@25063 | 24 } |
pascal@25063 | 25 |
pankso@16083 | 26 # Handle cross compilation |
pankso@16083 | 27 case "$ARCH" in |
pankso@16083 | 28 arm*) export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib" ;; |
pankso@16083 | 29 esac |
pankso@16083 | 30 |
mallory@1133 | 31 # Rules to configure and make the package. |
mallory@1133 | 32 compile_rules() |
mallory@1133 | 33 { |
pascal@19290 | 34 sed -i 's|/doc|/share&|' Makefile* |
pascal@25634 | 35 which imlib2-config || |
pascal@25634 | 36 sed -i -e 's|imlib2-config --cflags|pkg-config --cflags imlib2|' \ |
pascal@25634 | 37 -e 's|imlib2-config --libs|pkg-config --libs imlib2|' configure* |
Hans-G?nter@25030 | 38 |
Hans-G?nter@25030 | 39 ./configure \ |
Hans-G?nter@25030 | 40 --prefix=/usr \ |
Hans-G?nter@25032 | 41 --with-imlib2-exec-prefix=/usr \ |
Hans-G?nter@25030 | 42 --with-imlib2-prefix=/usr/lib/imlib2 \ |
pankso@16083 | 43 $CONFIGURE_ARGS && |
pascal@2485 | 44 make && |
Hans-G?nter@25030 | 45 make install DESTDIR=$DESTDIR |
mallory@1133 | 46 } |
mallory@1133 | 47 |
mallory@1133 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@1133 | 49 genpkg_rules() |
mallory@1133 | 50 { |
Hans-G?nter@25030 | 51 cook_copy_folders bin |
Hans-G?nter@25030 | 52 cook_copy_folders pkgconfig |
Hans-G?nter@25030 | 53 cook_copy_files *.so* |
mallory@1133 | 54 } |