wok-current annotate vkeybd/receipt @ rev 24976
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 06 11:04:25 2022 +0000 (2022-05-06) |
parents | 7c0170dd3ecc |
children |
rev | line source |
---|---|
mojo@13219 | 1 # SliTaz package receipt. |
mojo@13219 | 2 |
mojo@13219 | 3 PACKAGE="vkeybd" |
mojo@13219 | 4 VERSION="0.1.18d" |
mojo@13219 | 5 CATEGORY="multimedia" |
mojo@13219 | 6 SHORT_DESC="Virtual Midi keyboard." |
mojo@13219 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15216 | 8 LICENSE="GPL2" |
pascal@20965 | 9 WEB_SITE="https://web.archive.org/web/20190212145237/http://www.alsa-project.org/~tiwai/alsa.html" |
mojo@13219 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@24976 | 11 WGET_URL="https://ftp.osuosl.org/pub/gentoo/distfiles/$TARBALL" |
mojo@13219 | 12 |
mojo@13219 | 13 DEPENDS="tk tcl alsa-lib xorg-libX11" |
mojo@13219 | 14 BUILD_DEPENDS="tk-dev tcl-dev alsa-lib-dev xorg-libX11-dev" |
mojo@13219 | 15 |
pascal@24535 | 16 # What is the latest version available today? |
pascal@24535 | 17 current_version() |
pascal@24535 | 18 { |
pascal@24535 | 19 wget -O - https://raw.githubusercontent.com/tiwai/vkeybd/master/README 2>/dev/null | \ |
pascal@24535 | 20 sed '/VIRTUAL/!d;s|.*ver.||;q' |
pascal@24535 | 21 } |
pascal@24535 | 22 |
mojo@13219 | 23 # Rules to configure and make the package. |
mojo@13219 | 24 compile_rules() |
mojo@13219 | 25 { |
mojo@13219 | 26 cd $src |
mojo@13219 | 27 # Hack makefile |
pascal@17669 | 28 TCL_VERSION=$(sed '/TCL_VERSION/!d;s/.*"\(.*\)"/\1/' /usr/include/tcl.h) |
pascal@17669 | 29 sed -i "s|PREFIX = /usr/local|PREFIX = /usr|; \ |
pascal@17669 | 30 s|TCL_VERSION = 8.4|TCL_VERSION = $TCL_VERSION|" Makefile |
mojo@13219 | 31 make && |
mojo@13219 | 32 make DESTDIR=$DESTDIR install |
mojo@13219 | 33 } |
mojo@13219 | 34 |
mojo@13219 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
mojo@13219 | 36 genpkg_rules() |
mojo@13219 | 37 { |
mojo@13219 | 38 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications |
mojo@13219 | 39 cp -a $install/* $fs |
mojo@13219 | 40 # copy .desktop file and pixmap |
mojo@13219 | 41 cp -a $src/vkeybd.desktop $fs/usr/share/applications |
mojo@13219 | 42 cp -a $src/pixmaps/vkeybd_48x48.png $fs/usr/share/pixmaps |
mojo@13219 | 43 chown -R root.root $fs |
mojo@13219 | 44 } |
mojo@13219 | 45 |