wok-next annotate libxkbcommon/receipt @ rev 20607
perdition: up 2.2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Apr 19 15:57:59 2018 +0300 (2018-04-19) |
parents | 757d032c55c7 |
children | f48456621a9d |
rev | line source |
---|---|
al@19842 | 1 # SliTaz package receipt v2. |
pankso@16193 | 2 |
pankso@16193 | 3 PACKAGE="libxkbcommon" |
al@20018 | 4 VERSION="0.7.2" |
pankso@16193 | 5 CATEGORY="x-window" |
al@19842 | 6 SHORT_DESC="Keyboard handling library using XKB data" |
al@20595 | 7 MAINTAINER="al.bobylev@gmail.com" |
pankso@16193 | 8 LICENSE="custom" |
al@20018 | 9 WEB_SITE="https://xkbcommon.org/" |
al@20018 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libxkbcommon.html" |
al@19842 | 11 |
pankso@16193 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pankso@16193 | 13 WGET_URL="http://xkbcommon.org/download/$TARBALL" |
pankso@16193 | 14 |
al@20595 | 15 BUILD_DEPENDS="xorg-libxcb-dev xorg-util-macros xorg-xkeyboard-config-dev \ |
al@20595 | 16 bison wayland-protocols-dev wayland-dev" |
al@20595 | 17 SPLIT="libxkbcommon-x11 libxkbcommon libxkbcommon-dev \ |
al@20595 | 18 libxkbcommon-wayland:w libxkbcommon-wayland-dev:w" |
pankso@16193 | 19 |
al@20534 | 20 compile_rules() { |
al@20595 | 21 case $SET in |
al@20595 | 22 '') SET_ARGS='--disable-wayland --enable-x11';; |
al@20595 | 23 w) SET_ARGS='--enable-wayland --disable-x11';; |
al@20595 | 24 esac |
al@20595 | 25 |
pankso@16193 | 26 ./configure \ |
pankso@16193 | 27 --with-xkb-config-root=/usr/share/X11/xkb \ |
al@20595 | 28 $SET_ARGS \ |
pankso@16193 | 29 $CONFIGURE_ARGS && |
al@20595 | 30 fix libtool && |
al@20534 | 31 make && |
al@20534 | 32 make install |
pankso@16193 | 33 } |
pankso@16193 | 34 |
al@20534 | 35 genpkg_rules() { |
al@19842 | 36 case $PACKAGE in |
al@20018 | 37 libxkbcommon-x11) |
al@20018 | 38 copy libxkbcommon-x11.so* |
al@20018 | 39 DEPENDS="libxkbcommon xorg-libXau xorg-libXdmcp xorg-libxcb \ |
al@20018 | 40 xorg-xkeyboard-config xorg-libX11" |
al@20018 | 41 ;; |
al@19842 | 42 libxkbcommon) |
al@20513 | 43 copy @std @rm |
al@20018 | 44 DEPENDS=" " |
al@19842 | 45 ;; |
al@20595 | 46 libxkbcommon-dev) |
al@19842 | 47 copy @dev |
al@20018 | 48 DEPENDS="libxkbcommon libxkbcommon-x11 \ |
al@19842 | 49 xorg-libXau-dev xorg-libXdmcp-dev xorg-libxcb-dev" |
al@19842 | 50 ;; |
al@20595 | 51 |
al@20595 | 52 libxkbcommon-wayland) |
al@20595 | 53 CAT="x-window|Wayland support" |
al@20595 | 54 copy @std |
al@20595 | 55 ;; |
al@20595 | 56 libxkbcommon-wayland-dev) |
al@20595 | 57 CAT="development|development files with Wayland support" |
al@20595 | 58 copy @dev |
al@20595 | 59 ;; |
al@19842 | 60 esac |
pankso@16193 | 61 } |