wok annotate flmusic/receipt @ rev 25036

gtk-gnutella: binutils 2.34+ support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 13:10:56 2022 +0000 (2022-05-21)
parents 544e47246b33
children 20ad21d5532c
rev   line source
pankso@16372 1 # SliTaz package receipt
pankso@16372 2
pankso@16372 3 PACKAGE="flmusic"
pankso@16372 4 VERSION="1.2.1"
pankso@16372 5 CATEGORY="multimedia"
pankso@16372 6 SHORT_DESC="FLTK Audio player"
pankso@16372 7 MAINTAINER="pankso@slitaz.org"
pankso@16372 8 LICENSE="GPL"
pankso@16372 9 TARBALL="$PACKAGE-fltk13-source-$VERSION.tgz"
pascal@24978 10 WEB_SITE="https://github.com/bbidulock/flmusic"
pascal@24978 11 WGET_URL="https://github.com/bbidulock/flmusic/archive/refs/tags/$VERSION.tar.gz"
pankso@16372 12
pankso@16372 13 DEPENDS="fltk alsa-lib sox"
pankso@16372 14 BUILD_DEPENDS="fltk-dev alsa-lib-dev sox-dev"
pankso@16372 15
pascal@24540 16 # What is the latest version available today?
pascal@24540 17 current_version()
pascal@24540 18 {
pascal@24540 19 wget -O - https://github.com/bbidulock/flmusic/releases 2>/dev/null | \
pascal@24540 20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24540 21 }
pascal@24540 22
pankso@16372 23 # Rules to configure and make the package.
pankso@16372 24 compile_rules()
pankso@16372 25 {
pankso@16372 26 #sed -i '/ioctl.h/a #include <limits.h>' reader.c &&
pankso@16372 27 sed -i 's/$(installdir)/$(DESTDIR)$(installdir)/' \
pankso@16372 28 Makefile.in || return 1
pankso@16372 29 chmod +x configure &&
pankso@16372 30 ./configure --prefix=/usr \
pankso@16372 31 $CONFIGURE_ARGS &&
pankso@16372 32 make && mkdir -p $DESTDIR/usr/bin &&
pankso@16372 33 make DESTDIR=$DESTDIR install
pankso@16372 34 }
pankso@16372 35
pankso@16372 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16372 37 genpkg_rules()
pankso@16372 38 {
pankso@16372 39 mkdir -p $fs/usr
pankso@16372 40 cp -a $install/usr/bin $fs/usr
pankso@16372 41 }