summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6b851a52e9d61ff62ab2b071f7a70eacc6cdae54 (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
34
35
36
37
38
39
40
# Maintainer: Gennadiy Mykhailiuta <gmykhailiuta@gmail.com>
# Contributor: Cody Schafer <aur at codyps com>
# Contributor: Chris <alostengineer at narmos org>
# Contributor: Olivier EBLE <olivier.eble at gmail com>
# Contributor: Laszlo Papp <djszapi2 at gmail com>
# Contributor: Justin Gottula <justin at jgottula com>
# Contributor: RJ <private>
# Contributor: AscendLiu <ascendliu@qq.com>
pkgname=libftd2xx
pkgver=1.4.33
pkgrel=1
pkgdesc="Library that allows a direct access to a USB FTDI2XX chip based device"
arch=('x86_64')
url="http://www.ftdichip.com/"
license=('Proprietary')
depends=('glibc')
options=(staticlibs)
source=(55-ft2232.rules)
sha256sums=('5fb3f1642c75d6fcda589e2d86b1dbfc7b84a9f63ebef135968a27641203065d')
sha256sums_x86_64=('e260a4594a313583b87bf230c79cec9d46f11db6dcfd7c7d4f963279703214d3')
source_x86_64=("https://ftdichip.com/wp-content/uploads/2025/03/libftd2xx-linux-x86_64-1.4.33.tgz")

package() {
        # Make required dirs
        mkdir -p ${pkgdir}/usr/{lib,include}

        # Install versioned so file as well as static library
        install -Dm755 ${srcdir}/linux-x86_64/${pkgname}.so ${pkgdir}/usr/lib/${pkgname}.so
        install -Dm644 ${srcdir}/linux-x86_64/${pkgname}-static.a ${pkgdir}/usr/lib/${pkgname}.a

        # Link versioned so file to generic
        ln -sf /usr/lib/${pkgname}.so "${pkgdir}"/usr/lib/${pkgname}.so.${pkgver}


        # Install Headers
        install -m644 "${srcdir}"/linux-x86_64/{ftd2xx,WinTypes}.h "${pkgdir}"/usr/include/

        # Install udev rules
        install -D -m644 "${srcdir}"/55-ft2232.rules "${pkgdir}"/etc/udev/rules.d/55-ft2232.rules
}