wok annotate giblib/receipt @ rev 25443
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 03 09:28:15 2022 +0000 (2022-09-03) |
parents | 513bea7dd854 |
children | b0069c845544 |
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" |
Hans-G?nter@25030 | 9 WEB_SITE="http://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* |
Hans-G?nter@25030 | 35 |
Hans-G?nter@25030 | 36 ./configure \ |
Hans-G?nter@25030 | 37 --prefix=/usr \ |
Hans-G?nter@25032 | 38 --with-imlib2-exec-prefix=/usr \ |
Hans-G?nter@25030 | 39 --with-imlib2-prefix=/usr/lib/imlib2 \ |
pankso@16083 | 40 $CONFIGURE_ARGS && |
pascal@2485 | 41 make && |
Hans-G?nter@25030 | 42 make install DESTDIR=$DESTDIR |
mallory@1133 | 43 } |
mallory@1133 | 44 |
mallory@1133 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@1133 | 46 genpkg_rules() |
mallory@1133 | 47 { |
Hans-G?nter@25030 | 48 cook_copy_folders bin |
Hans-G?nter@25030 | 49 cook_copy_folders pkgconfig |
Hans-G?nter@25030 | 50 cook_copy_files *.so* |
mallory@1133 | 51 } |