1 # $Id: PKGBUILD 6743 2009-12-21 12:17:19Z ibiru $
2 # Contributor: Yarema aka Knedlyk <yupadmin@gmail.com>
4 pkgname=em8300-utils-hg
8 pkgdesc="DXR3 and Hollywood+ driver"
9 url="http://dxr3.sourceforge.net/"
12 optdepends=('gtk2: to use dxr3view, dhc or autocal'
13 'perl: to use em8300 scripts')
14 conflicts=('em8300-utils')
15 provides=('em8300-utils')
18 _hgroot=http://hg.assembla.com/
19 _hgrepo=em8300-cgmeiner
24 if [ -d ${_hgrepo} ]; then
25 cd ${startdir}/src/${_hgrepo}
28 hg clone ${_hgroot}${_hgrepo} || return 1
29 # same but fixing changeset:
30 # hg clone ${_hgroot}${_hgrepo} -r $pkgver || return
33 msg "Mercurial clone done or server timeout"
34 msg "Starting make..."
36 rm -rf $srcdir/$_hgrepo-build
37 cp -rf $srcdir/$_hgrepo $srcdir/$_hgrepo-build
38 cd $srcdir/$_hgrepo-build
42 ./configure --prefix=/usr
44 make DESTDIR="${pkgdir}" install || return 1
46 install -m 644 -D modules/em8300-udev.rules "${pkgdir}/lib/udev/rules.d/em8300.rules" || return 1