wok view giblib/receipt @ rev 25216

updated python-pbr (5.4.5 -> 5.8.0)
author Hans-G?nter Theisgen
date Wed Jul 13 15:29:05 2022 +0100 (2022-07-13)
parents 513bea7dd854
children b0069c845544
line source
1 # SliTaz package receipt
3 PACKAGE="giblib"
4 VERSION="1.2.4"
5 CATEGORY="graphics"
6 SHORT_DESC="Giblib graphics library."
7 MAINTAINER="mallory@sweetpeople.org"
8 LICENSE="MIT"
9 WEB_SITE="http://freshmeat.sourceforge.net/projects/giblib"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/cbane/giblib/archive/v$VERSION.tar.gz"
14 DEPENDS="freetype imlib2 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext"
15 BUILD_DEPENDS="freetype-dev imlib2-dev xorg-xproto xorg-libXext-dev"
17 HOST_ARCH="i486 arm"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
24 }
26 # Handle cross compilation
27 case "$ARCH" in
28 arm*) export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib" ;;
29 esac
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 sed -i 's|/doc|/share&|' Makefile*
36 ./configure \
37 --prefix=/usr \
38 --with-imlib2-exec-prefix=/usr \
39 --with-imlib2-prefix=/usr/lib/imlib2 \
40 $CONFIGURE_ARGS &&
41 make &&
42 make install DESTDIR=$DESTDIR
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 cook_copy_folders bin
49 cook_copy_folders pkgconfig
50 cook_copy_files *.so*
51 }