Magellan Linux

Contents of /branches/magellan-next/core/kbd/kbd-1.15.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7567 - (show annotations) (download)
Thu May 26 21:28:50 2011 UTC (12 years, 11 months ago) by niro
File size: 1327 byte(s)
auto added: ver bump to 1.15.3-r1
1 # $Id$
2
3 PNAME="kbd"
4 PVER="1.15.3"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-apps"
8 STATE="unstable"
9
10 DESCRIPTION="Keyboard and console utilities"
11 HOMEPAGE="http://freshmeat.net/projects/kbd/"
12
13 DEPEND=">= virtual/glibc"
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 )
24
25 UP2DATE="updatecmd http://ftp.altlinux.org/pub/people/legion/kbd/'?M=A' | grep ${PNAME}-[0-9].* | lasttarball gz"
26
27 src_prepare()
28 {
29 munpack ${SRCFILE} || die
30 cd ${SRCDIR}
31
32 # rename conflicting keymaps to have unique names
33 # this should be removed when upstream adopts the change
34 mv data/keymaps/i386/dvorak/no{,-dvorak}.map || die
35 mv data/keymaps/i386/fgGIod/trf{,-fgGIod}.map || die
36 mv data/keymaps/i386/olpc/es{,-olpc}.map || die
37 mv data/keymaps/i386/olpc/pt{,-olpc}.map || die
38 mv data/keymaps/i386/qwerty/cz{,-qwerty}.map || die
39 }
40
41 src_compile()
42 {
43 cd ${SRCDIR}
44
45 mconfigure --enable-nls || die
46 mmake || die
47 }
48
49 src_install()
50 {
51 cd ${SRCDIR}
52 mmake DESTDIR=${BINDIR} install || die
53
54 # docs
55 minstalldocs CHANGES COPYING CREDITS README || die
56
57 minstalldir /bin || die
58 mv ${BINDIR}/usr/bin/setfont ${BINDIR}/bin/ || die
59 mlink /bin/setfont /usr/bin/setfont || die
60
61 # html docs
62 minstallhtml doc/*.html || die
63 }