wok view svkbd/receipt @ rev 24462
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 16 21:07:01 2022 +0000 (2022-02-16) |
parents | 6135577f4d08 |
children | d358ff3c7097 |
line source
1 # SliTaz package receipt.
3 PACKAGE="svkbd"
4 GITHASH="a5b40479e354ce11a1b009492da65ea562070cba"
5 VERSION="${GITHASH:0:7}"
6 CATEGORY="x-window"
7 SHORT_DESC="Simple virtual keyboard that suck less (EN Layout)."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="BSD"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://tools.suckless.org/x/svkbd/"
12 WGET_URL="http://git.suckless.org/svkbd/snapshot/svkbd-$GITHASH.tar.bz2"
13 HOST_ARCH="i486 arm"
15 DEPENDS="xorg-libX11 xorg-libXtst"
16 BUILD_DEPENDS="xorg-libX11-dev xorg-libXtst-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cp -d ${stuff}/*.h .
29 for layout in de en ru fr
30 do
31 make svkbd-${layout} CC=${HOST_SYSTEM}-gcc || return 1
32 done
33 # We may need to sed config.def.h to set correct font for RU ???
34 #make svkbd-ru CC=${HOST_SYSTEM}-gcc
35 make install DESTDIR=${DESTDIR} PREFIX="/usr"
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/bin
42 cp -a ${install}/usr/bin/${PACKAGE}-en $fs/usr/bin
43 }