1 #Contributor: Thomas Dziedzic < gostrc at gmail >
2 #Contributor: Alessandro Sagratini <ale_sagra@hotmail.com>
7 pkgdesc='Userspace module for Ricoh R5U870 OEM cameras.'
9 url='http://bitbucket.org/ahixon/r5u87x/'
12 makedepends=('mercurial' 'glib2' 'libusb' 'pkgconfig')
13 depends=('glib2' 'libusb')
15 install='r5u87x-hg.install'
17 _hgroot='http://bitbucket.org/ahixon'
21 if [ -d ${_hgrepo} ]; then
26 hg clone ${_hgroot}${_hgrepo}
31 sed -i 's|#LOADER#|/usr/bin/loader|' contrib/90-r5u87x-loader.rules.in
33 # set UCODE_PATH because we don't install to default location
34 make UCODE_PATH=/lib/firmware/r5u87x-%vid%-%pid%.fw
40 install -d ${pkgdir}/usr/bin
41 install -d ${pkgdir}/lib/firmware
42 install -d ${pkgdir}/etc/udev/rules.d
44 install loader ${pkgdir}/usr/bin
45 install recode-fw.scm ${pkgdir}/usr/bin
46 install -m644 ucode/*.fw ${pkgdir}/lib/firmware
47 install -m644 contrib/90-r5u87x-loader.rules ${pkgdir}/etc/udev/rules.d