From 5d9105d242ebf5e7e5590ee089fc44763b513734 Mon Sep 17 00:00:00 2001 From: milisman Date: Mon, 12 Sep 2016 00:44:44 +0300 Subject: [PATCH] libftdi.paketlendi --- talimatname/genel/libftdi/talimat | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 talimatname/genel/libftdi/talimat diff --git a/talimatname/genel/libftdi/talimat b/talimatname/genel/libftdi/talimat new file mode 100644 index 000000000..3075f3664 --- /dev/null +++ b/talimatname/genel/libftdi/talimat @@ -0,0 +1,23 @@ +# Description: A library to talk to FTDI chips, optional python bindings. +# URL: http://www.intra2net.com/en/developer/libftdi/download.php +# Packager: milisarge +# Depends on : libusb libconfuse boost cmake python swig + +name=libftdi +version=1.3 +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 -p 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" "$pkgdir/usr/lib/udev/rules.d/69-libftdi.rules" +# FS#45053 +cp -r ../examples/* "$PKG/usr/share/libftdi/examples" +}