Dragora GNU/Linux-Libre

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1:148bb72e160f96c721ccbf919b12697da3409600
Date: 2017-10-06 18:34:05
User: selk
Comment:reconfigure xkeyboard-config
Tags And Properties
Context
2017-10-06
19:00
[9469d9ca1f] build mesa with EGL support (user: selk, tags: trunk)
18:34
[148bb72e16] reconfigure xkeyboard-config (user: selk, tags: trunk)
17:50
[81e2382720] build gawk without libsigsegv which was causing segfaults due to the shared libraries; also, include a patch to solve a warning on getopt.c (user: selk, tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to recipes/xorg/data/xkeyboard-config/recipe.

1
2
3

4
5
6
7
8
9

10
11
12
13
14
15
16
17


18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69

70
71
72
73
74
75
76
77
78
# Build recipe for xkeyboard-config.
#
# Copyright (C) 2017 Mateus P. Rodrigues <mprodrigues@dragora.org>.

#
# This recipe is free software: you have unlimited permission
# to copy, distribute and modify it.

program=xkeyboard-config
version=2.21

release=1

tarname=${program}-${version}.tar.bz2

# Remote source(s)
fetch=http://www.x.org/releases/individual/data/xkeyboard-config/$tarname

description="


The non-arch keyboard configuration database for X Window.
"

homepage=http://www.x.org
license="MIT X Consortium"

# Source documentation
docs="ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README TODO"
docsdir="${docdir}/${program}-${version}"

build()
{
    set -e

    unpack "${tardir}/$tarname"

    cd "$srcdir"

    ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
     $configure_args \
     --libdir=/usr/lib${libSuffix} \
     --infodir=$infodir \
     --mandir=$mandir \
     --docdir=$docsdir \
     || true




    make -j${jobs} V=1
    make -j${jobs} DESTDIR="$destdir" install

    # Compress info documents deleting index file for the package
    if test -d "${destdir}/$infodir"
    then
        rm -f "${destdir}/${infodir}/dir"
        lzip -9 "${destdir}/${infodir}"/*
    fi

    # Compress and link man pages (if needed)
    if test -d "${destdir}/$mandir"
    then
        (
            cd "${destdir}/$mandir"
            find . -type f -exec lzip -9 '{}' +
            find . -type l | while read -r file
            do
                ln -sf "$(readlink -- "$file").lz" "${file}.lz"
                rm -- "$file"
            done
        )
    fi

    # Copy documentation
    mkdir -p "${destdir}${docsdir}"


    for file in $docs
    do
        if test -e $file
        then
            cp -p $file "${destdir}${docsdir}"
        fi
    done
}



>






>








>
>







|










<
|
<
<
<

<
>
>
>




<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<


>
|
<
<
<
<
<
<
<
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

40



41

42
43
44
45
46
47
48





















49
50
51
52







53
# Build recipe for xkeyboard-config.
#
# Copyright (C) 2017 Mateus P. Rodrigues <mprodrigues@dragora.org>.
# Copyright (C) 2017 Matias A. Fonzo <selk@dragora.org>.
#
# This recipe is free software: you have unlimited permission
# to copy, distribute and modify it.

program=xkeyboard-config
version=2.21
arch=noarch
release=1

tarname=${program}-${version}.tar.bz2

# Remote source(s)
fetch=http://www.x.org/releases/individual/data/xkeyboard-config/$tarname

description="
X keyboard extension.

The non-arch keyboard configuration database for X Window.
"

homepage=http://www.x.org
license="MIT X Consortium"

# Source documentation
docs="AUTHORS COPYING ChangeLog NEWS README TODO"
docsdir="${docdir}/${program}-${version}"

build()
{
    set -e

    unpack "${tardir}/$tarname"

    cd "$srcdir"


    ./configure $configure_args \



     --docdir=$docsdir \

     --enable-compat-rules \
     --with-xkb-base=/etc/X11/xkb \
     --with-xkb-rules-symlink=xfree86,xorg

    make -j${jobs} V=1
    make -j${jobs} DESTDIR="$destdir" install






















    # Copy documentation
    mkdir -p "${destdir}${docsdir}"
    cp -p $docs "${destdir}${docsdir}"
}