wok view libsdl-perl/receipt @ rev 24103

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 17 14:12:38 2021 +0000 (2021-09-17)
parents a00bf44ed23d
children fb22330086d8
line source
1 # SliTaz package receipt.
3 PACKAGE="libsdl-perl"
4 VERSION="2.2.6"
5 CATEGORY="x-window"
6 SHORT_DESC="SDL perl support."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="LGPL2"
9 SOURCE="SDL_Perl"
10 TARBALL="$SOURCE-v${VERSION}.tar.gz"
11 WEB_SITE="https://metacpan.org/dist/SDL" # http://sdl.perl.org
12 WGET_URL="http://search.cpan.org/CPAN/authors/id/K/KT/KTHAKORE/$TARBALL"
14 DEPENDS="xorg libglu-mesa mesa libsdl libsdl-gfx libsdl-image libsdl-mixer \
15 libsdl-net libsmpeg libsdl-ttf"
16 BUILD_DEPENDS="perl-yaml xorg-dev libglu-mesa libglu-mesa-dev mesa-dev \
17 libsdl-dev libsdl-gfx-dev libsdl-image-dev libsdl-mixer-dev libsdl-net-dev \
18 libsdl-ttf-dev"
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | \
23 sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 cd $src
30 perl Build.PL destdir="$DESTDIR" &&
31 perl Build &&
32 perl Build install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $install/usr/lib $fs/usr
40 }