wok-6.x annotate libhangul/receipt @ rev 25418

duat: use archive.org for web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 05 16:48:05 2022 +0000 (2022-08-05)
parents b569b85b0fb9
children
rev   line source
allan316@4064 1 # SliTaz package receipt.
allan316@4064 2
allan316@4064 3 PACKAGE="libhangul"
pascal@13322 4 VERSION="0.1.0"
allan316@4064 5 CATEGORY="misc"
allan316@4064 6 SHORT_DESC="library for Hangul"
allan316@4064 7 MAINTAINER="allan316@gmail.com"
pascal@14714 8 LICENSE="LGPL2.1"
allan316@4064 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@22864 10 WEB_SITE="https://github.com/libhangul/libhangul"
pascal@24978 11 WGET_URL="http://kldp.net/hangul/release/3442-$TARBALL"
allan316@4064 12
pascal@14714 13 DEPENDS=""
pascal@14714 14
pascal@24308 15 # What is the latest version available today?
pascal@24308 16 current_version()
pascal@24308 17 {
pascal@24308 18 wget -O - $WEB_SITE/tags 2>/dev/null | \
pascal@24308 19 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24308 20 }
pascal@24308 21
allan316@4064 22 # Rules to configure and make the package.
allan316@4064 23 compile_rules()
allan316@4064 24 {
allan316@4064 25 cd $src
allan316@4064 26 ./configure \
allan316@4064 27 --prefix=/usr \
allan316@4064 28 --infodir=/usr/share/info \
allan316@4064 29 --mandir=/usr/share/man \
pascal@13325 30 --datadir=/usr/lib \
allan316@4064 31 $CONFIGURE_ARGS &&
pascal@13322 32 make && make DESTDIR=$DESTDIR install
allan316@4064 33 }
allan316@4064 34
allan316@4064 35 # Rules to gen a SliTaz package suitable for Tazpkg.
allan316@4064 36 genpkg_rules()
allan316@4064 37 {
allan316@4064 38 mkdir -p $fs/usr/lib
pascal@13322 39 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@13322 40 cp -a $install/usr/lib/libhangul $fs/usr/lib
allan316@4064 41 }
allan316@4064 42