updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / bootload / PKGBUILD
blob5892e4b2bd827e461ff8ea3063db3dc53f59adf4
1 # Contributor: Vincent Kriek <vincent@vincentkriek.nl>
2 pkgname=bootload
3 pkgver=1.4
4 pkgrel=1
5 pkgdesc="Load program into your TUSB3210"
6 arch=('i686' 'x86_64')
7 url="http://sourceforge.net/projects/tusb3210/"
8 license=('GPL')
9 source=("http://downloads.sourceforge.net/project/tusb3210/Bootloader%20and%20i2c%20Utilities/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz")
11 build() {
12   cd "$srcdir/$pkgname-$pkgver"
14   sed 's/busses())/busses() < 0)/' tusb.c > tusb.tussen
15   sed 's/devices())/devices() < 0)/' tusb.tussen > tusb.c
17   make || return 1
19   mkdir -p $pkgdir/usr/bin/
20   install -m 755 bootload $pkgdir/usr/bin/bootload
21   install -m 755 i2c-header $pkgdir/usr/bin/i2c-header
22   install -m 755 i2c-rom $pkgdir/usr/bin/i2c-rom
25 # vim:set ts=2 sw=2 et:
27 md5sums=('0b7dca4685ad460be5c61e5066cc9c25')