blob: 2809bf1049a36ca9c388d737c59084a04880cb49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Young Acinonyx <young.acinonyx [at] gmail [dot] com>
pkgname=lib32-ezusb
_pkgname=EZUSB_Linux
pkgver=1.5.3
pkgrel=2
pkgdesc="Driver for Castles Technology EZ100PU/EZMINI PC/SC Smart Card Reader. (32-bit)"
arch=('x86_64')
url="https://www.castlestech.com/"
license=('unknown')
depends=('lib32-pcsclite')
makedepends=('unzip')
# The original link is offline, so I uploaded a backup to archive.org
#source=("${pkgname}-${pkgver}.zip::https://www.castlestech.com/wp-content/uploads/2016/08/201511920271676073.zip")
source=("https://archive.org/download/${pkgname##lib32-}-${pkgver}/${pkgname##lib32-}-${pkgver}.zip")
md5sums=('c4adcc5cb7f34f3a6092b1474c06c513')
prepare() {
cd "${srcdir}/${_pkgname}/"
# Extract only the 32-bit version of the driver
unzip -qo ${_pkgname}_x86_v${pkgver}.zip
# Remove unnecessary files and directories
find "${srcdir}" -type f ! -iname Info.plist ! -iname ezusb.so -delete
find "${srcdir}" -type d -empty -delete
}
package() {
install -dm 755 "${pkgdir}/usr/lib32/pcsc/drivers/${pkgname##lib32-}.bundle/Contents/Linux"
cp -Rfv "${srcdir}/${_pkgname}/${_pkgname}_x86_v${pkgver}/driver_${pkgname##lib32-}_v${pkgver}/drivers/Info.plist" "${pkgdir}/usr/lib32/pcsc/drivers/${pkgname##lib32-}.bundle/Contents/"
cp -Rfv "${srcdir}/${_pkgname}/${_pkgname}_x86_v${pkgver}/driver_${pkgname##lib32-}_v${pkgver}/drivers/${pkgname##lib32-}.so" "${pkgdir}/usr/lib32/pcsc/drivers/${pkgname##lib32-}.bundle/Contents/Linux"
}
|