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