Magellan Linux

Contents of /branches/R11-stable/core/kbd/kbd-1.15.5-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20118 - (show annotations) (download)
Tue Nov 26 10:19:29 2013 UTC (10 years, 6 months ago) by niro
File size: 1486 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="kbd"
4 PVER="1.15.5"
5 PBUILD="r2"
6
7 PCAT="sys-apps"
8
9 DESCRIPTION="Keyboard and console utilities"
10 HOMEPAGE="http://freshmeat.net/projects/kbd/"
11
12 DEPEND=">= virtual/glibc"
13 PROVIDE="virtual/kbd"
14
15 SRCFILE="${PNAME}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 sminclude mtools
19
20 SRC_URI=(
21 http://ftp.altlinux.org/pub/people/legion/${PNAME}/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 mirror://${PNAME}/${PNAME}-${PVER}-fix-es.po.patch
24 )
25
26 UP2DATE="updatecmd http://ftp.altlinux.org/pub/people/legion/kbd/'?M=A' | grep ${PNAME}-[0-9].* | lasttarball gz"
27
28 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31 cd ${SRCDIR}
32
33 # compile fix
34 mpatch ${PNAME}-${PVER}-fix-es.po.patch || die
35
36 # rename conflicting keymaps to have unique names
37 # this should be removed when upstream adopts the change
38 mv data/keymaps/i386/dvorak/no{,-dvorak}.map || die
39 mv data/keymaps/i386/fgGIod/trf{,-fgGIod}.map || die
40 mv data/keymaps/i386/olpc/es{,-olpc}.map || die
41 mv data/keymaps/i386/olpc/pt{,-olpc}.map || die
42 mv data/keymaps/i386/qwerty/cz{,-qwerty}.map || die
43 }
44
45 src_compile()
46 {
47 cd ${SRCDIR}
48
49 # let data like keymaps reside in /usr/share/kbd (systemd-compat)
50 mconfigure \
51 --enable-nls \
52 --exec-prefix=/usr \
53 --datadir=/usr/share/kbd \
54 --localedir=/usr/share/locale \
55 || die
56
57 mmake -j1 || die
58 }
59
60 src_install()
61 {
62 cd ${SRCDIR}
63 mmake DESTDIR=${BINDIR} install || die
64
65 # docs
66 minstalldocs CHANGES COPYING CREDITS README || die
67
68 # html docs
69 minstallhtml doc/*.html || die
70 }