wok-6.x annotate enca/receipt @ rev 24658

created recipes for libdbi and libdbi-dev
author Hans-G?nter Theisgen
date Fri Mar 11 09:23:49 2022 +0100 (2022-03-11)
parents 2ede53b1e7e1
children
rev   line source
pankso@4322 1 # SliTaz package receipt.
pankso@4322 2
pankso@4322 3 PACKAGE="enca"
Hans-G?nter@20883 4 VERSION="1.19"
pankso@4322 5 CATEGORY="x-window"
pankso@4322 6 SHORT_DESC="Enca is an Extremely Naive Charset Analyser."
pankso@4322 7 MAINTAINER="pankso@slitaz.org"
pascal@15588 8 LICENSE="GPL2"
Hans-G?nter@20883 9 WEB_SITE="https://cihar.com/software/enca/"
Hans-G?nter@20883 10
Hans-G?nter@20884 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
Hans-G?nter@20884 12 WGET_URL="https://dl.cihar.com/$PACKAGE/$TARBALL"
pankso@16276 13 #HOST_ARCH="i486 arm"
pankso@4322 14
pascal@24439 15 # What is the latest version available today?
pascal@24439 16 current_version()
pascal@24439 17 {
pascal@24439 18 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24439 19 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24439 20 }
pascal@24439 21
pankso@4322 22 # Rules to configure and make the package.
pankso@4322 23 compile_rules()
pankso@4322 24 {
pankso@16276 25 #sed -e "s#./make_hash#./native_make_hash#" -i tools/Makefile.am || exit 1
pankso@4322 26 ./configure \
Hans-G?nter@20883 27 --prefix=/usr \
Hans-G?nter@20883 28 --libexecdir=/usr/lib \
Hans-G?nter@20883 29 --disable-static \
Hans-G?nter@20883 30 $CONFIGURE_ARGS &&
Hans-G?nter@20883 31 make -j 1 &&
pascal@15588 32 make DESTDIR=$DESTDIR install
pankso@4322 33 }
pankso@4322 34
pankso@4322 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4322 36 genpkg_rules()
pankso@4322 37 {
pankso@4322 38 mkdir -p $fs/usr/lib
pascal@15588 39 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@15588 40 cp -a $install/usr/lib/enca $fs/usr/lib
pascal@15588 41 cp -a $install/usr/bin $fs/usr
pankso@4322 42 }