wok-current annotate gmrun/receipt @ rev 24906

updated minidlna (1.2.1 -> 1.3.0)
author Hans-G?nter Theisgen
date Sat Apr 09 14:37:52 2022 +0100 (2022-04-09)
parents 86790a278e70
children 1b47827a7c64
rev   line source
rocky@3546 1 # SliTaz package receipt.
rocky@3546 2
rocky@3546 3 PACKAGE="gmrun"
rocky@3546 4 VERSION="0.9.2"
rocky@3546 5 CATEGORY="utilities"
rocky@3546 6 SHORT_DESC="Program launcher with autocompletion."
rocky@3546 7 MAINTAINER="rocky@slitaz.org"
pascal@15589 8 LICENSE="GPL2"
rocky@3546 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20421 10 WEB_SITE="https://sourceforge.net/projects/gmrun"
rocky@3546 11 WGET_URL="$SF_MIRROR/gmrun/$TARBALL"
pankso@16259 12 HOST_ARCH="i486 arm"
rocky@3546 13
pascal@15589 14 DEPENDS="gtk+ gcc-lib-base popt"
pascal@15589 15 BUILD_DEPENDS="gtk+-dev popt-dev"
pascal@15589 16
pascal@24403 17 # What is the latest version available today?
pascal@24403 18 current_version()
pascal@24403 19 {
pascal@24403 20 wget -O - https://sourceforge.net/projects/gmrun/files/gmrun/ 2>/dev/null | \
pascal@24403 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24403 22 sed '/scope="row/!d;s|.*/gmrun/||;s|/.*||;q'
pascal@24403 23 }
pascal@24403 24
rocky@3546 25 # Rules to configure and make the package.
rocky@3546 26 compile_rules()
rocky@3546 27 {
rocky@3546 28 cd $src
rocky@3573 29 while read file; do
rocky@3573 30 [ -f done.$file ] && continue
rocky@3573 31 echo "Apply $file..."
slaxemulator@9700 32 patch -p1 < $stuff/$file || return 1
rocky@3573 33 touch done.$file
rocky@3573 34 done <<EOT
rocky@3573 35 gmrun-0.9.2-gcc43.patch
rocky@3573 36 EOT
rocky@3546 37 ./configure --prefix=/usr \
rocky@3546 38 $CONFIGURE_ARGS &&
rocky@3546 39 make &&
pascal@15589 40 make install DESTDIR=$DESTDIR
rocky@3546 41 }
rocky@3546 42
rocky@3546 43 # Rules to gen a SliTaz package suitable for Tazpkg.
rocky@3546 44 genpkg_rules()
rocky@3546 45 {
rocky@3546 46 mkdir -p $fs/usr
pascal@15589 47 cp -a $install/usr/bin $fs/usr
pascal@15589 48 cp -a $install/usr/share $fs/usr
slaxemulator@9700 49 cp $stuff/gmrunrc $fs/usr/share/gmrun
rocky@3546 50 }