summaryrefslogtreecommitdiff
path: root/community/libftdi
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-07 03:24:01 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-07 03:24:01 +0000
commitb4f09e0a566f01cd9a250e2f44423169c70adc94 (patch)
treed407e83c47735fe0d24a6be03937a1d84f41c1cf /community/libftdi
parentae5e27e4900c0c38025462f59e0524aef7aa630b (diff)
Fri Feb 7 03:21:50 UTC 2014
Diffstat (limited to 'community/libftdi')
-rw-r--r--community/libftdi/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community/libftdi/PKGBUILD b/community/libftdi/PKGBUILD
new file mode 100644
index 000000000..08d225b72
--- /dev/null
+++ b/community/libftdi/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 105380 2014-02-06 10:28:29Z bpiotrowski $
+# Maintainer:
+
+pkgname=libftdi
+pkgver=1.1
+pkgrel=1
+pkgdesc="A library to talk to FTDI chips"
+arch=('i686' 'x86_64')
+url="http://www.intra2net.com/en/developer/libftdi/download.php"
+license=('GPL2' 'LGPL2.1')
+depends=('libusbx')
+makedepends=('boost' 'cmake')
+source=(http://www.intra2net.com/en/developer/libftdi/download/${pkgname}1-$pkgver.tar.bz2{,.sig})
+sha1sums=('f05ade5614aa31e64f91a30ce3782f7ca3704d18'
+ 'SKIP')
+
+prepare() {
+ cd ${pkgname}1-$pkgver
+ sed -i 's|LIB_SUFFIX 64|LIB_SUFFIX ""|' CMakeLists.txt
+}
+
+build() {
+ cd ${pkgname}1-$pkgver
+ mkdir build
+ cd build
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_BUILD_RPATH=ON -DCMAKE_BUILD_TYPE=Release
+ make
+}
+
+package() {
+ cd ${pkgname}1-$pkgver/build
+ make DESTDIR="$pkgdir" install
+ find examples -type f -perm -755 -exec install {} "$pkgdir/usr/bin" \;
+ # Remove eepreom (conflict with i2c-tools FS#37925)
+ rm "$pkgdir/usr/bin/eeprom"
+}