Magellan Linux

Contents of /trunk/extras/synaptics/synaptics-0.14.6-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 1368 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/synaptics/synaptics-0.14.6-r2.smage2,v 1.2 2008/02/07 14:23:54 niro Exp $
2
3 PNAME="synaptics"
4 PVER="0.14.6"
5 PBUILD="r2"
6
7 PCATEGORIE="x11-misc"
8 STATE="testing"
9
10 DESCRIPTION="Synaptics TouchPad driver for XOrg/XFree86."
11 HOMEPAGE="http://web.telia.com/~u89404340/touchpad/"
12
13 DEPEND=">= x11-libs/libXext-1"
14 SDEPEND=">= x11-base/xorg-server-1
15 >= sys-apps/sed-4"
16
17 SRCFILE="${PNAME}-${PVER}.tar.bz2"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 sminclude mtools
21
22 SRC_URI=(
23 http://web.telia.com/~u89404340/touchpad/files/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 mirror://${PNAME}/synaptics.rc
26 mirror://${PNAME}/synaptics.confd
27 )
28
29 src_prepare()
30 {
31 munpack ${SRCFILE} || die
32 cd ${SRCDIR}
33
34 # fix destination dir to /usr
35 sed -i -e "s:^\(INSTALLED_X =\).*:\1 \$(DESTDIR)/usr:" \
36 -e "s:^\(BINDIR =\).*:\1 \$(DESTDIR)/usr/bin:" \
37 -e "s:^\(MANDIR =\).*:\1 \$(DESTDIR)/usr/share/man:" Makefile || die
38
39 # fix up CFLAGS
40 sed -i "s:CDEBUGFLAGS = -O2:CDEBUGFLAGS = ${CFLAGS}:g" Makefile || die
41 }
42
43 src_compile()
44 {
45 cd ${SRCDIR}
46 mmake || die
47 }
48
49 src_install()
50 {
51 cd ${SRCDIR}
52 make DESTDIR=${BINDIR} install || die
53
54 # install init stuff
55 minstallrc synaptics.rc synaptics || die
56 minstallconf synaptics.confd synaptics || die
57
58 minstalldocs COMPATIBILITY FILES LICENSE NEWS README* TODO \
59 script/usb{mouse,hid} alps.patch trouble-shooting.txt || die
60 }

Properties

Name Value
svn:keywords Id