[arch-commits] Commit in libftdi/repos (4 files)

Kyle Keen kkeen at archlinux.org
Sun Sep 20 13:17:54 UTC 2015


    Date: Sunday, September 20, 2015 @ 15:17:54
  Author: kkeen
Revision: 141270

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  libftdi/repos/community-staging-i686/
  libftdi/repos/community-staging-i686/PKGBUILD
    (from rev 141269, libftdi/trunk/PKGBUILD)
  libftdi/repos/community-staging-x86_64/
  libftdi/repos/community-staging-x86_64/PKGBUILD
    (from rev 141269, libftdi/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   51 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   51 ++++++++++++++++++++++++++++++++++++
 2 files changed, 102 insertions(+)

Copied: libftdi/repos/community-staging-i686/PKGBUILD (from rev 141269, libftdi/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-09-20 13:17:54 UTC (rev 141270)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+# bug, python binding vanished with 3.4
+# Could NOT find PythonLibs (missing:  PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
+
+pkgname=libftdi
+pkgver=1.2
+pkgrel=6
+pkgdesc="A library to talk to FTDI chips, optional python bindings."
+arch=('i686' 'x86_64')
+url="http://www.intra2net.com/en/developer/libftdi/download.php"
+license=('GPL2' 'LGPL2.1')
+depends=('libusb' 'confuse')
+optdepends=('python: library bindings')
+makedepends=('boost' 'cmake' 'python' 'swig')
+# doxygen for docs, confuse for eeprom
+source=(http://www.intra2net.com/en/developer/libftdi/download/${pkgname}1-$pkgver.tar.bz2{,.sig})
+sha1sums=('636b9fcc745bf4eeb027a1dd891f770158444f7a'
+          'SKIP')
+validpgpkeys=('3CEA9B8868BC3852618EB5B4707F91A424F006F5')  # Intra2net open source
+
+prepare() {
+  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
+}
+
+build() {
+  cd "$srcdir/${pkgname}1-$pkgver"
+  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
+}
+
+# needs yet unknown dependencies
+#check() {
+#  cd "$srcdir/${pkgname}1-$pkgver/build"
+#  make check
+#}
+
+package() {
+  cd "${pkgname}1-$pkgver/build"
+  make DESTDIR="$pkgdir" install
+  install -Dm644 "../packages/99-libftdi.rules" "$pkgdir/usr/lib/udev/rules.d/69-libftdi.rules"
+  # FS#45053
+  cp -r ../examples/* "$pkgdir/usr/share/libftdi/examples"
+}
+

Copied: libftdi/repos/community-staging-x86_64/PKGBUILD (from rev 141269, libftdi/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-09-20 13:17:54 UTC (rev 141270)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+# bug, python binding vanished with 3.4
+# Could NOT find PythonLibs (missing:  PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
+
+pkgname=libftdi
+pkgver=1.2
+pkgrel=6
+pkgdesc="A library to talk to FTDI chips, optional python bindings."
+arch=('i686' 'x86_64')
+url="http://www.intra2net.com/en/developer/libftdi/download.php"
+license=('GPL2' 'LGPL2.1')
+depends=('libusb' 'confuse')
+optdepends=('python: library bindings')
+makedepends=('boost' 'cmake' 'python' 'swig')
+# doxygen for docs, confuse for eeprom
+source=(http://www.intra2net.com/en/developer/libftdi/download/${pkgname}1-$pkgver.tar.bz2{,.sig})
+sha1sums=('636b9fcc745bf4eeb027a1dd891f770158444f7a'
+          'SKIP')
+validpgpkeys=('3CEA9B8868BC3852618EB5B4707F91A424F006F5')  # Intra2net open source
+
+prepare() {
+  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
+}
+
+build() {
+  cd "$srcdir/${pkgname}1-$pkgver"
+  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
+}
+
+# needs yet unknown dependencies
+#check() {
+#  cd "$srcdir/${pkgname}1-$pkgver/build"
+#  make check
+#}
+
+package() {
+  cd "${pkgname}1-$pkgver/build"
+  make DESTDIR="$pkgdir" install
+  install -Dm644 "../packages/99-libftdi.rules" "$pkgdir/usr/lib/udev/rules.d/69-libftdi.rules"
+  # FS#45053
+  cp -r ../examples/* "$pkgdir/usr/share/libftdi/examples"
+}
+



More information about the arch-commits mailing list