Contents of /branches/magellan-next/core/kbd/kbd-1.15.3-r1.smage2
Parent Directory | Revision Log
Revision 7593 -
(show annotations)
(download)
Fri May 27 07:58:27 2011 UTC (13 years, 4 months ago) by niro
File size: 1443 byte(s)
Fri May 27 07:58:27 2011 UTC (13 years, 4 months ago) by niro
File size: 1443 byte(s)
-added a compile fix
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 | 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 || die |
50 | mmake || 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 | minstalldir /bin || die |
62 | mv ${BINDIR}/usr/bin/setfont ${BINDIR}/bin/ || die |
63 | mlink /bin/setfont /usr/bin/setfont || die |
64 | |
65 | # html docs |
66 | minstallhtml doc/*.html || die |
67 | } |