wok-next view vkeybd/receipt @ rev 21102

gtkglext: patch
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jan 03 00:26:26 2019 +0200 (2019-01-03)
parents d5aab818505e
children 3bc985504162
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="http://www.alsa-project.org/~tiwai/alsa.html"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://ftp.riken.jp/Linux/suse/people/tiwai/vkeybd/$TARBALL"
14 BUILD_DEPENDS="tk-dev tcl-dev alsa-lib-dev libx11-dev"
16 compile_rules() {
17 # Hack makefile
18 TCL_VERSION=$(sed '/TCL_VERSION/!d;s/.*"\(.*\)"/\1/' /usr/include/tcl.h) #"
19 sed \
20 -e 's|PREFIX = /usr/local|PREFIX = /usr|' \
21 -e "s|TCL_VERSION = 8.4|TCL_VERSION = $TCL_VERSION|" \
22 -i Makefile
24 make &&
25 make DESTDIR=$install install
26 }
28 genpkg_rules() {
29 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications
30 cp -a $install/* $fs
31 # copy .desktop file and pixmap
32 cp -a $src/vkeybd.desktop $fs/usr/share/applications
33 cp -a $src/pixmaps/vkeybd_48x48.png $fs/usr/share/pixmaps
34 chown -R root.root $fs
35 DEPENDS="tk tcl alsa-lib libx11"
36 }