Magellan Linux

Contents of /trunk/core/kbd/kbd-1.13-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 126 - (show annotations) (download)
Tue Oct 14 11:58:54 2008 UTC (15 years, 8 months ago) by niro
File size: 1310 byte(s)
-move to "core"
1 # $Header: /magellan-cvs/smage/kbd/kbd-1.13-r2.smage2,v 1.2 2008/02/13 13:37:08 niro Exp $
2
3 PNAME="kbd"
4 PVER="1.13"
5 PBUILD="r2"
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.bz2"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 sminclude mtools
19
20 SRC_URI=(
21 ftp://ftp.altlinux.org/pub/people/legion/${PNAME}/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 mirror://${PNAME}/${PNAME}-1.12-cz-qwerty-map.patch
24 )
25
26 src_prepare()
27 {
28 munpack ${SRCFILE} || die
29 cd ${SRCDIR}
30
31 # use our cflags
32 sed -i "s:-O2:${CFLAGS}:g" src/Makefile.in || die
33
34 # provide both a QWERTZ and a QWERTY cz keymap
35 cp data/keymaps/i386/{qwerty,qwertz}/cz.map || die
36 mpatch ${PNAME}-1.12-cz-qwerty-map.patch || die
37 }
38
39 src_compile()
40 {
41 cd ${SRCDIR}
42
43 ./configure \
44 --prefix=/usr \
45 --mandir=/usr/share/man \
46 --datadir=/usr/share \
47 || die
48
49 mmake || die
50 }
51
52 src_install()
53 {
54 cd ${SRCDIR}
55
56 mmake DESTDIR=${BINDIR} \
57 DATADIR=${BINDIR}/usr/share \
58 MANDIR=${BINDIR}/usr/share/man \
59 install || die
60
61 mv ${BINDIR}/usr/bin/setfont ${BINDIR}/bin/ || die
62 mlink /bin/setfont /usr/bin/setfont || die
63
64 # docs
65 minstalldocs CHANGES COPYING CREDITS README || die
66
67 # html docs
68 minstallhtml doc/*.html || die
69 }

Properties

Name Value
svn:keywords Id