SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "flmusic"

# SliTaz package receipt

PACKAGE="flmusic"
VERSION="1.2.1"
CATEGORY="multimedia"
SHORT_DESC="FLTK Audio player"
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL"
TARBALL="$PACKAGE-fltk13-source-$VERSION.tgz"
WEB_SITE="https://github.com/bbidulock/flmusic"
WGET_URL="https://github.com/bbidulock/flmusic/archive/refs/tags/$VERSION.tar.gz"

DEPENDS="fltk alsa-lib sox"
BUILD_DEPENDS="fltk-dev alsa-lib-dev sox-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/bbidulock/flmusic/releases 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    #sed -i '/ioctl.h/a #include <limits.h>' reader.c &&
    sed -i 's/$(installdir)/$(DESTDIR)$(installdir)/' \
        Makefile.in || return 1
    chmod +x configure &&
    ./configure --prefix=/usr \
        $CONFIGURE_ARGS  && 
    make && mkdir -p $DESTDIR/usr/bin &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/bin $fs/usr
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)