Magellan Linux

Contents of /trunk/core/kbd/kbd-1.15.5-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14399 - (show annotations) (download)
Tue Dec 18 10:36:58 2012 UTC (11 years, 5 months ago) by niro
File size: 1343 byte(s)
auto added: ver bump to 1.15.5-r1
1 # $Id$
2
3 PNAME="kbd"
4 PVER="1.15.5"
5 PBUILD="r1"
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 mconfigure --enable-nls --exec-prefix=/usr || die
50 mmake -j1 || die
51 }
52
53 src_install()
54 {
55 cd ${SRCDIR}
56 mmake DESTDIR=${BINDIR} install || die
57
58 # docs
59 minstalldocs CHANGES COPYING CREDITS README || die
60
61 # html docs
62 minstallhtml doc/*.html || die
63 }