wok-current view vkeybd/receipt @ rev 25017
updated openjpeg, openjpeg-dev and openjpeg-tools (1.5.0 -> 1.5.2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed May 18 06:55:41 2022 +0100 (2022-05-18) |
parents | 7c0170dd3ecc |
children |
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="https://ftp.osuosl.org/pub/gentoo/distfiles/$TARBALL"
13 DEPENDS="tk tcl alsa-lib xorg-libX11"
14 BUILD_DEPENDS="tk-dev tcl-dev alsa-lib-dev xorg-libX11-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://raw.githubusercontent.com/tiwai/vkeybd/master/README 2>/dev/null | \
20 sed '/VIRTUAL/!d;s|.*ver.||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 # Hack makefile
28 TCL_VERSION=$(sed '/TCL_VERSION/!d;s/.*"\(.*\)"/\1/' /usr/include/tcl.h)
29 sed -i "s|PREFIX = /usr/local|PREFIX = /usr|; \
30 s|TCL_VERSION = 8.4|TCL_VERSION = $TCL_VERSION|" Makefile
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications
39 cp -a $install/* $fs
40 # copy .desktop file and pixmap
41 cp -a $src/vkeybd.desktop $fs/usr/share/applications
42 cp -a $src/pixmaps/vkeybd_48x48.png $fs/usr/share/pixmaps
43 chown -R root.root $fs
44 }