wok annotate libcaca/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents dac38080ab6b
children
rev   line source
paul@16102 1 # SliTaz package receipt.
paul@16102 2
paul@16102 3 PACKAGE="libcaca"
Hans-G?nter@24722 4 VERSION="0.99.beta20"
paul@16102 5 CATEGORY="graphics"
paul@16102 6 SHORT_DESC="Text mode graphics utilities."
paul@16102 7 MAINTAINER="paul@slitaz.org"
paul@16102 8 LICENSE="GPL2"
Hans-G?nter@24722 9 WEB_SITE="http://caca.zoy.org/wiki/libcaca"
Hans-G?nter@24722 10
paul@16102 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@24722 12 WGET_URL="https://github.com/cacalabs/$PACKAGE/archive/refs/tags/v$VERSION.tar.gz"
paul@16102 13
Hans-G?nter@24722 14 DEPENDS="imlib2 ncurses"
Hans-G?nter@24722 15 BUILD_DEPENDS="automake imlib2-dev libtool ncurses-dev xorg-libX11-dev"
paul@16102 16
pascal@24447 17 # What is the latest version available today?
pascal@24447 18 current_version()
pascal@24447 19 {
pascal@25603 20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@25603 21 sed '/latest/d;/tag\//!d;s|.*tag/[a-z-]*||;s|".*||;q'
pascal@24447 22 }
pascal@24447 23
paul@16102 24 # Rules to configure and make the package.
paul@16102 25 compile_rules()
paul@16102 26 {
Hans-G?nter@24722 27 ./bootstrap &&
Hans-G?nter@24722 28 ./configure \
Hans-G?nter@24722 29 --prefix=/usr \
paul@16102 30 $CONFIGURE_ARGS &&
Hans-G?nter@24722 31 make &&
Hans-G?nter@24722 32 make install DESTDIR=$DESTDIR
paul@16102 33 }
paul@16102 34
paul@16102 35 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@16102 36 genpkg_rules()
paul@16102 37 {
pascal@19805 38 # hack for missing iso8859-1 folder
Hans-G?nter@24722 39 # cook xorg-libX11
pascal@19805 40
Hans-G?nter@24722 41 mkdir -p $fs/usr/lib
Hans-G?nter@24722 42 # mkdir -p $fs/usr/share/X11/locale
Hans-G?nter@24722 43
Hans-G?nter@24722 44 cp -a $install/usr/bin $fs/usr
Hans-G?nter@24722 45 cp -a $install/usr/lib/*.so* $fs/usr/lib
paul@18624 46 #cp -a $install/usr/lib/jni $fs/usr/lib
Hans-G?nter@24722 47 cp -a $install/usr/share $fs/usr
Hans-G?nter@24722 48 rm -rf $fs/usr/share/man
paul@16102 49 # hack for missing iso8859-1 folder
Hans-G?nter@24722 50 # cp -a $WOK/xorg-libX11/install/usr/share/X11/locale/iso8859-1 \
Hans-G?nter@24722 51 # $fs/usr/share/X11/locale
Hans-G?nter@24722 52 # really needed?
paul@16102 53 }
paul@16102 54