wok view libass/receipt @ rev 24308

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 17 18:18:17 2022 +0000 (2022-01-17)
parents 86790a278e70
children d4859a833be5
line source
1 # SliTaz package receipt.
3 PACKAGE="libass"
4 VERSION="0.10.0"
5 CATEGORY="multimedia"
6 SHORT_DESC="A portable library for SSA/ASS subtitles rendering"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="https://github.com/libass/libass"
11 WGET_URL="http://libass.googlecode.com/files/$TARBALL"
13 DEPENDS="enca fontconfig libpng fribidi"
14 BUILD_DEPENDS="enca-dev freetype-dev fontconfig-dev libpng-dev \
15 expat-dev fribidi-dev pkg-config libxml2-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 ./configure $CONFIGURE_ARGS &&
29 make && make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib
36 cp -a $install/usr/lib/*.so* $fs/usr/lib
37 }