summaryrefslogtreecommitdiff
path: root/community/libftdi/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/libftdi/PKGBUILD')
-rw-r--r--community/libftdi/PKGBUILD18
1 files changed, 8 insertions, 10 deletions
diff --git a/community/libftdi/PKGBUILD b/community/libftdi/PKGBUILD
index 08d225b72..23ff6bc06 100644
--- a/community/libftdi/PKGBUILD
+++ b/community/libftdi/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 105380 2014-02-06 10:28:29Z bpiotrowski $
-# Maintainer:
+# $Id: PKGBUILD 105529 2014-02-09 17:42:22Z kkeen $
+# Maintainer: Kyle Keen <keenerd@gmail.com>
pkgname=libftdi
pkgver=1.1
-pkgrel=1
+pkgrel=2
pkgdesc="A library to talk to FTDI chips"
arch=('i686' 'x86_64')
url="http://www.intra2net.com/en/developer/libftdi/download.php"
@@ -15,22 +15,20 @@ sha1sums=('f05ade5614aa31e64f91a30ce3782f7ca3704d18'
'SKIP')
prepare() {
- cd ${pkgname}1-$pkgver
+ cd "${pkgname}1-$pkgver"
sed -i 's|LIB_SUFFIX 64|LIB_SUFFIX ""|' CMakeLists.txt
}
build() {
- cd ${pkgname}1-$pkgver
+ cd "${pkgname}1-$pkgver"
mkdir build
cd build
- cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_BUILD_RPATH=ON -DCMAKE_BUILD_TYPE=Release
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_BUILD_RPATH=ON \
+ -DCMAKE_BUILD_TYPE=Release -DEXAMPLES=OFF -DFTDI_EEPROM=OFF
make
}
package() {
- cd ${pkgname}1-$pkgver/build
+ 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"
}