wok view imlib/receipt @ rev 24817

created recipes for libnsl and libnsl-dev
author Hans-G?nter Theisgen
date Wed Mar 23 07:31:51 2022 +0100 (2022-03-23)
parents 73968a7f1da9
children 65784e875d45
line source
1 # SliTaz package receipt.
3 PACKAGE="imlib"
4 VERSION="1.9.15"
5 CATEGORY="graphics"
6 SHORT_DESC="An advanced replacement imaging library for libraries like libXpm."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://freshmeat.net/projects/imlib/"
11 WGET_URL="https://download.gnome.org/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
13 DEPENDS="glibc-base xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext giflib jpeg libpng tiff zlib util-linux-uuid"
14 BUILD_DEPENDS="slitaz-toolchain xorg-dev xorg-xextproto giflib giflib-dev jpeg jpeg-dev libpng libpng-dev tiff tiff-dev zlib zlib-dev util-linux-uuid-dev"
16 current_version()
17 {
18 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
19 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 # Update for giflib >= 5 api
26 patch -p0 < $stuff/giflib5.u
28 ./configure \
29 --prefix=/usr \
30 --sysconfdir=/etc \
31 --infodir=/usr/share/info \
32 --mandir=/usr/share/man \
33 $CONFIGURE_ARGS &&
34 make && make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
41 cp -a $install/usr/bin $fs/usr
42 mkdir -p $fs/usr/lib
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 mkdir -p $fs/etc
45 cp -a $install/etc $fs
46 }