wok-next view zlib/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | 9a17d981d0f7 |
children | d5aab818505e |
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="pankso@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="zlib-dev"
17 compile_rules() {
18 ./configure \
19 --prefix=/usr &&
20 make && make install || return 1
22 mkdir -p $install/lib
23 mv -v $install/usr/lib/libz.so.* $install/lib
24 ln -sf ../../lib/$(readlink $install/usr/lib/libz.so) \
25 $install/usr/lib/libz.so
26 }
28 # Important cross compiled package so run readelf.
29 testsuite() {
30 readelf -h $install/lib/libz.so.$VERSION
31 }
33 genpkg_rules() {
34 case $PACKAGE in
35 zlib) copy @std; TAGS="LFS";;
36 *-dev) copy @dev;;
37 esac
38 }