wok-6.x view vkeybd/receipt @ rev 24072

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 07 17:56:16 2021 +0000 (2021-07-07)
parents 9a27b923c7b7
children 7c0170dd3ecc
line source
1 # SliTaz package receipt.
3 PACKAGE="vkeybd"
4 VERSION="0.1.18d"
5 CATEGORY="multimedia"
6 SHORT_DESC="Virtual Midi keyboard."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://web.archive.org/web/20190212145237/http://www.alsa-project.org/~tiwai/alsa.html"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="http://ftp.riken.jp/Linux/suse/people/tiwai/vkeybd/$TARBALL"
13 DEPENDS="tk tcl alsa-lib xorg-libX11"
14 BUILD_DEPENDS="tk-dev tcl-dev alsa-lib-dev xorg-libX11-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 # Hack makefile
21 TCL_VERSION=$(sed '/TCL_VERSION/!d;s/.*"\(.*\)"/\1/' /usr/include/tcl.h)
22 sed -i "s|PREFIX = /usr/local|PREFIX = /usr|; \
23 s|TCL_VERSION = 8.4|TCL_VERSION = $TCL_VERSION|" Makefile
24 make &&
25 make DESTDIR=$DESTDIR install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications
32 cp -a $install/* $fs
33 # copy .desktop file and pixmap
34 cp -a $src/vkeybd.desktop $fs/usr/share/applications
35 cp -a $src/pixmaps/vkeybd_48x48.png $fs/usr/share/pixmaps
36 chown -R root.root $fs
37 }