Magellan Linux

Annotation of /trunk/core/kbd/kbd-1.14.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 129 - (hide annotations) (download)
Tue Oct 14 12:08:38 2008 UTC (15 years, 8 months ago) by niro
File size: 1275 byte(s)
-fixed build
1 niro 128 # $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.14.1"
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     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     UP2DATE="updatecmd ftp://ftp.altlinux.org/pub/people/legion/kbd | grep ${PNAME}-[0-9].* | sort | lasttarball gz"
27    
28     src_prepare()
29     {
30     munpack ${SRCFILE} || die
31     cd ${SRCDIR}
32    
33     # use our cflags
34     sed -i "s:-O2:${CFLAGS}:g" src/Makefile.in || die
35     }
36    
37     src_compile()
38     {
39     cd ${SRCDIR}
40    
41     ./configure \
42     --prefix=/usr \
43     --mandir=/usr/share/man \
44     --datadir=/usr/share \
45     || die
46    
47     mmake || die
48     }
49    
50     src_install()
51     {
52     cd ${SRCDIR}
53    
54     mmake DESTDIR=${BINDIR} \
55     DATADIR=${BINDIR}/usr/share \
56     MANDIR=${BINDIR}/usr/share/man \
57     install || die
58    
59     mv ${BINDIR}/usr/bin/setfont ${BINDIR}/bin/ || die
60     mlink /bin/setfont /usr/bin/setfont || die
61    
62     # docs
63     minstalldocs CHANGES COPYING CREDITS README || die
64    
65     # html docs
66     minstallhtml doc/*.html || die
67     }

Properties

Name Value
svn:keywords Id