wok annotate libhangul/receipt @ rev 25787

qps: fix wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 26 07:22:41 2024 +0000 (3 months ago)
parents 00e3b45c063b
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@25777 11 WGET_URL="https://github.com/libhangul/libhangul/archive/refs/tags/$TARBALL"
allan316@4064 12
pascal@14714 13 DEPENDS=""
pascal@25777 14 BUILD_DEPENDS="automake gettext"
pascal@14714 15
pascal@24308 16 # What is the latest version available today?
pascal@24308 17 current_version()
pascal@24308 18 {
pascal@24308 19 wget -O - $WEB_SITE/tags 2>/dev/null | \
pascal@24308 20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24308 21 }
pascal@24308 22
allan316@4064 23 # Rules to configure and make the package.
allan316@4064 24 compile_rules()
allan316@4064 25 {
pascal@25777 26 sed -i 's|AM_GNU_GETTEXT_VERSION(.*|AM_GNU_GETTEXT_VERSION(0.20)|' configure.ac
pascal@25777 27 ./autogen.sh
allan316@4064 28 ./configure \
allan316@4064 29 --prefix=/usr \
allan316@4064 30 --infodir=/usr/share/info \
allan316@4064 31 --mandir=/usr/share/man \
pascal@13325 32 --datadir=/usr/lib \
allan316@4064 33 $CONFIGURE_ARGS &&
pascal@13322 34 make && make DESTDIR=$DESTDIR install
allan316@4064 35 }
allan316@4064 36
allan316@4064 37 # Rules to gen a SliTaz package suitable for Tazpkg.
allan316@4064 38 genpkg_rules()
allan316@4064 39 {
allan316@4064 40 mkdir -p $fs/usr/lib
pascal@13322 41 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@13322 42 cp -a $install/usr/lib/libhangul $fs/usr/lib
allan316@4064 43 }
allan316@4064 44