wok annotate gtkdatabox/receipt @ rev 25075

created recipe for alsa-ucm-conf
author Hans-G?nter Theisgen
date Tue Jun 14 07:07:03 2022 +0100 (2022-06-14)
parents 86790a278e70
children ad0bc3efbf37
rev   line source
pankso@3841 1 # SliTaz package receipt.
pankso@3841 2
pankso@3841 3 PACKAGE="gtkdatabox"
pankso@3841 4 VERSION="0.9.1.1"
pankso@3841 5 CATEGORY="development"
pankso@3841 6 SHORT_DESC="Widget for live display of large amounts of fluctuating data."
pankso@3841 7 MAINTAINER="pankso@slitaz.org"
pascal@14996 8 LICENSE="LGPL2.1"
pankso@3841 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20421 10 WEB_SITE="https://sourceforge.net/projects/gtkdatabox/"
pankso@3841 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pankso@3841 12
pascal@14996 13 DEPENDS="gtk+"
pascal@14996 14 BUILD_DEPENDS="pkg-config libffi gtk+-dev"
pascal@14996 15
pascal@24403 16 # What is the latest version available today?
pascal@24403 17 current_version()
pascal@24403 18 {
pascal@24403 19 wget -O - https://sourceforge.net/projects/gtkdatabox/files/ 2>/dev/null | \
pascal@24403 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24403 21 sed '/scope="row/!d;/tar/!d;/gtkdatabox/!d;s|.*/gtkdatabox-||;s|.tar.*||;q'
pascal@24403 22 }
pascal@24403 23
pankso@3841 24 # Rules to configure and make the package.
pankso@3841 25 compile_rules()
pankso@3841 26 {
pankso@3841 27 cd $src
gokhlayeh@8868 28
gokhlayeh@8868 29 # Fix from gentoo
gokhlayeh@8868 30 # http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-libs/gtkdatabox/gtkdatabox-0.9.1.1.ebuild?view=markup
gokhlayeh@8868 31 # Remove -D.*DISABLE_DEPRECATED cflags
gokhlayeh@8868 32 find . -iname 'Makefile.am' -exec \
gokhlayeh@8868 33 sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' -i {} + && \
gokhlayeh@8868 34 # Do Makefile.in after Makefile.am to avoid automake maintainer-mode
gokhlayeh@8868 35 find . -iname 'Makefile.in' -exec \
gokhlayeh@8868 36 sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' -i {} + && \
gokhlayeh@8868 37
gokhlayeh@11573 38 ./configure $CONFIGURE_ARGS && make && make install
pankso@3841 39 }
pankso@3841 40
pankso@3841 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@3841 42 genpkg_rules()
pankso@3841 43 {
pankso@3841 44 mkdir -p $fs/usr/lib
pascal@14996 45 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@3841 46 }