blob: a2992ae912698c61370049df3718f3fe583a5495 (
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
|
# Description: A library to talk to FTDI chips, optional python bindings.
# URL: http://www.intra2net.com/en/developer/libftdi/download.php
# Maintainer: Erich Eckner, crux at eckner dot net
# Depends on: libusb libconfuse
name=libftdi
version=1.4
release=1
source=(http://www.intra2net.com/en/developer/libftdi/download/${name}1-${version}.tar.bz2)
build() {
cd ${name}1-${version}
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 build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_BUILD_RPATH=ON \
-DCMAKE_BUILD_TYPE=Release -DEXAMPLES=OFF -DFTDI_EEPROM=ON
make
make DESTDIR=$PKG install
install -Dm644 "../packages/99-libftdi.rules" "$PKG/etc/udev/rules.d/69-libftdi.rules"
}
|