wok-current annotate cwallpaper-fltk/receipt @ rev 24890
trafshow: libpcap 1.10 has its own pcap_init
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 05 09:06:43 2022 +0000 (2022-04-05) |
parents | 5e2a0043db11 |
children | 4f225ad3e12e |
rev | line source |
---|---|
pankso@16361 | 1 # SliTaz package receipt. |
pankso@16361 | 2 |
pankso@16361 | 3 PACKAGE="cwallpaper-fltk" |
pankso@16361 | 4 VERSION="0.4.2" |
pankso@16361 | 5 CATEGORY="system-tools" |
pankso@16361 | 6 SHORT_DESC="PC XT-compatible emulator/virtual machine." |
pankso@16361 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pankso@16361 | 8 LICENSE="GPL" |
pankso@16361 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@16361 | 10 WEB_SITE="http://cwallpaper.sourceforge.net" |
pankso@16361 | 11 WGET_URL="$SF_MIRROR/cwallpaper/$PACKAGE/cwallpaper-fltk-$VERSION/$TARBALL" |
pankso@16361 | 12 HOST_ARCH="i486 arm" |
pankso@16361 | 13 |
pankso@16361 | 14 SUGGESTED="hsetroot feh" |
pankso@16361 | 15 DEPENDS="fltk" |
pankso@16361 | 16 BUILD_DEPENDS="fltk-dev" |
pankso@16361 | 17 |
pascal@24383 | 18 # What is the latest version available today? |
pascal@24383 | 19 current_version() |
pascal@24383 | 20 { |
pascal@24383 | 21 wget -O - http://cwallpaper.sourceforge.net/download.php 2>/dev/null | \ |
pascal@24383 | 22 sed '/cwallpaper-fltk/!d;s|.*-fltk_||;s|.tar.*||;q' |
pascal@24383 | 23 } |
pascal@24383 | 24 |
pankso@16361 | 25 # Rules to configure and make the package. |
pankso@16361 | 26 compile_rules() |
pankso@16361 | 27 { |
pankso@16361 | 28 sed -i s"#g++#${HOST_SYSTEM}-g++#" Makefile || return 1 |
pankso@16361 | 29 make && mkdir -p ${DESTDIR}/usr/bin/ && |
pankso@16361 | 30 make DESTDIR=${DESTDIR} install |
pankso@16361 | 31 } |
pankso@16361 | 32 |
pankso@16361 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16361 | 34 genpkg_rules() |
pankso@16361 | 35 { |
pankso@16361 | 36 mkdir -p $fs/usr/share/cwallpaper |
pankso@16361 | 37 cp -a $install/usr/bin $fs/usr |
pankso@16361 | 38 cp $install/usr/share/cwallpaper/example_config \ |
pankso@16361 | 39 $fs/usr/share/cwallpaper |
pankso@16361 | 40 } |