wok annotate libzim/receipt @ rev 24944
updated n2n (2.4 -> 3.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 22 16:44:33 2022 +0100 (2022-04-22) |
parents | fe96d104d02e |
children |
rev | line source |
---|---|
pascal@19338 | 1 # SliTaz package receipt. |
pascal@19338 | 2 |
pascal@19338 | 3 PACKAGE="libzim" |
pascal@19338 | 4 SOURCE="zimlib" |
pascal@20180 | 5 VERSION="1.4" |
pascal@19338 | 6 CATEGORY="office" |
pascal@19338 | 7 SHORT_DESC="Read and write method for ZIM files used by Wikipedia." |
pascal@19338 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@19338 | 9 LICENSE="GPL2" |
pascal@19338 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@21419 | 11 WEB_SITE="https://www.openzim.org/wiki/Zimlib" |
pascal@20181 | 12 WGET_URL="http://download.openzim.org/archive/$TARBALL" |
pascal@19338 | 13 |
pascal@19338 | 14 DEPENDS="liblzma" |
pascal@19338 | 15 BUILD_DEPENDS="xz-dev autoconf automake libtool" |
pascal@19338 | 16 |
pascal@24447 | 17 # What is the latest version available today? |
pascal@24447 | 18 current_version() |
pascal@24447 | 19 { |
pascal@24447 | 20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24447 | 21 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24447 | 22 } |
pascal@24447 | 23 |
pascal@19338 | 24 # Rules to configure and make the package. |
pascal@19338 | 25 compile_rules() |
pascal@19338 | 26 { |
pascal@19338 | 27 ./configure --prefix=/usr \ |
pascal@19338 | 28 $CONFIGURE_ARGS && |
pascal@19338 | 29 make && |
pascal@19338 | 30 make DESTDIR=$DESTDIR install |
pascal@19338 | 31 } |
pascal@19338 | 32 |
pascal@19338 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@19338 | 34 genpkg_rules() |
pascal@19338 | 35 { |
pascal@19338 | 36 mkdir -p $fs/usr/lib |
pascal@19338 | 37 cp -a $install/usr/lib/*.so* $fs/usr/lib/ |
pascal@19338 | 38 cp -a $install/usr/bin $fs/usr |
pascal@19338 | 39 } |