updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / python-ftdi / PKGBUILD
blob33793742bf34c546e945f76d8790e7fe962ae4ef
1 #Maintainer: Randy Heydon <randy.heydon at clockworklab dot net>
2 #Based on the PKGBUILD created for libftdi.
3 pkgname=python-ftdi
4 pkgver=0.18
5 pkgrel=1
6 pkgdesc="Python bindings to libftdi"
7 arch=("i686" "x86_64")
8 url="http://www.intra2net.com/en/developer/libftdi/download.php"
9 license=("GPL2" "LGPL2.1")
10 depends=("libftdi")
11 makedepends=("swig")
12 options=('!libtool')
13 source=("http://www.intra2net.com/en/developer/libftdi/download/libftdi-$pkgver.tar.gz")
14 md5sums=('916f65fa68d154621fc0cf1f405f2726')
15 sha1sums=('52401db0e7cb90a5d83f82c2859a4f8d44e52579')
17 build() {
18   cd "$srcdir/libftdi-$pkgver"
19   sed -i '/no-install/d' examples/Makefile.in
20   ./configure --prefix=/usr --enable-python-binding
21   make
24 package() {
25   cd "$srcdir/libftdi-$pkgver"
26   make DESTDIR="$pkgdir" install
28   #Strip out all non-python components
29   cd $pkgdir
30   #rm -r `ls --hide=usr`
31   cd usr
32   rm -r `ls --hide=lib`
33   cd lib
34   rm -r `ls --hide=python2.6`