1 # Maintainer: onny <onny@project-insanity.org>
2 # Contributor: onny <onny@project-insanity.org>
7 pkgdesc="A driver for the ez100 smart card readers."
9 url="http://www.casauto.com.tw/in-products-03.aspx?id=P_00000055"
11 source=('http://www.casauto.com.tw/db/pictures/modules/PDT/PDT060207001/2009102020151530195.gz')
12 md5sums=('0f884dbd3980dc5127ebe66835411bb9')
14 pre_install=('check_env')
18 # if [sh check_env | grep "Check OK" == "Environment Check OK!"] ; then
19 # msg "Environment Check OK!"
21 # msg "Environement Check failed!
22 # If the screen shows 'PC/SC Daemon Not Ready', please goto the website
23 # http://www.linuxnet.com/middle.html to download and install the pcsclite package.
24 # If the scrren shows 'Error! USB Device File System Not Mounted', please mount USB
25 # file system according to the instruction.
27 # Notes: If the script cannot execute, please use 'chmod 777 check_env' to change it
28 # to executable file."
33 mkdir -p $srcdir/usr/local/pcsc/drivers/ezusb.bundle/Contents/Linux
34 cp EZUSB_Linux_x86_v1.4.9/driver_ezusb_v1.4.9/drivers/ezusb.so $srcdir/usr/local/pcsc/drivers/ezusb.bundle/Contents/Linux/
35 cp EZUSB_Linux_x86_v1.4.9/driver_ezusb_v1.4.9/drivers/Info.plist $srcdir/usr/local/pcsc/drivers/ezusb.bundle/Contents/
36 mkdir -p $srcdir/usr/lib/pcsc/drivers/ezusb.bundle/Contents/Linux
37 cp EZUSB_Linux_x86_v1.4.9/driver_ezusb_v1.4.9/drivers/ezusb.so $srcdir/usr/lib/pcsc/drivers/ezusb.bundle/Contents/Linux/
38 cp EZUSB_Linux_x86_v1.4.9/driver_ezusb_v1.4.9/drivers/Info.plist $srcdir/usr/lib/pcsc/drivers/ezusb.bundle/Contents/
40 msg "You need to reboot the system to use the driver!"
41 msg "After reboot, insert a card. If the led of the reader turns red, the installation
42 of EZUSB driver is successful.
44 Notice: 1. The recommaned version of kernel is 2.4 or higher.
45 2. If you have installed EZUSB driver v1.3.4 or lower, please reinstall it first
46 before executing 'install' program.
47 To uninstall v1.3.4 or lower, remove the settings of EZUSB driver in the
49 3. The driver requires PCSCLITE with being building with libusb. If PCSCLITE built
50 with libhal, the driver will not work."