SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libsdl-perl"

# SliTaz package receipt.

PACKAGE="libsdl-perl"
VERSION="2.2.6"
CATEGORY="x-window"
SHORT_DESC="SDL perl support."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="LGPL2"
SOURCE="SDL_Perl"
TARBALL="$SOURCE-v${VERSION}.tar.gz"
WEB_SITE="https://metacpan.org/dist/SDL" # http://sdl.perl.org
WGET_URL="https://search.cpan.org/CPAN/authors/id/K/KT/KTHAKORE/$TARBALL"

DEPENDS="xorg libglu-mesa mesa libsdl libsdl-gfx libsdl-image libsdl-mixer \
libsdl-net libsmpeg libsdl-ttf"
BUILD_DEPENDS="perl-yaml xorg-dev libglu-mesa libglu-mesa-dev mesa-dev \
libsdl-dev libsdl-gfx-dev libsdl-image-dev libsdl-mixer-dev libsdl-net-dev \
libsdl-ttf-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed '/SDL_Perl/!d;/tar/!d;s|.*l-v*||;s|.tar.*||;s|_|.|g' | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    perl Build.PL destdir="$DESTDIR" &&
    perl Build &&
    perl Build install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/lib $fs/usr
}

6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)