🔒 Repository is read-only – file editing is disabled.
1234567891011121314151617181920212223242526272829303132333435363738394041
pkgname: libftdi
pkgver: '1.5'
pkgrel: '5'
pkgdesc: 'A library to talk to FTDI chips, optional python bindings.'
url: 'https://www.intra2net.com/en/developer/libftdi/download.php'
arch: x86_64
depends: []
makedepends:
- libusb
- confuse
- boost
- cmake
- swig
source:
- 'https://www.intra2net.com/en/developer/libftdi/download/${pkgname}1-${pkgver}.tar.bz2'
sha256sums:
- SKIP
build: |
cd ${pkgname}1-${pkgver}
sed -i 's|LIB_SUFFIX 64|LIB_SUFFIX ""|' CMakeLists.txt
sed -i "s|MODE=\"0664\", GROUP=\"plugdev\"|TAG+=\"uaccess\"|g" packages/99-libftdi.rules
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DFTDI_EEPROM=ON -DDOCUMENTATION=OFF \
-DSTATICLIBS=0 -Wno-dev \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
make
make DESTDIR=${PKGDIR} install
install -Dm644 ../packages/99-libftdi.rules ${PKGDIR}/etc/udev/rules.d/69-libftdi.rules
mkdir -p ${PKGDIR}/usr/share/libftdi
cp -r ../examples ${PKGDIR}/usr/share/libftdi/examples
package: |
true