wok-next view zlib/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 90a5eb560fd6
children e7e7475e84c9
line source
1 # SliTaz package receipt v2.
3 PACKAGE="zlib"
4 VERSION="1.2.11"
5 CATEGORY="base-system"
6 SHORT_DESC="Compression library"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="zlib/libpng"
9 WEB_SITE="http://www.zlib.net/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/zlib.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$WEB_SITE$TARBALL"
15 SPLIT="$PACKAGE-dev"
17 compile_rules() {
18 ./configure \
19 --prefix=/usr &&
20 make &&
21 make install || return 1
23 mkdir -p $install/lib
24 mv -v $install/usr/lib/libz.so.* $install/lib
25 ln -sf ../../lib/$(readlink $install/usr/lib/libz.so) \
26 $install/usr/lib/libz.so
27 }
29 # Important cross compiled package so run readelf.
30 testsuite() {
31 readelf -h $install/lib/libz.so.$VERSION
32 }
34 genpkg_rules() {
35 case $PACKAGE in
36 zlib) copy @std; TAGS="LFS";;
37 *-dev) copy @dev;;
38 esac
39 }