From 6c7f35618b10ccc77afa4138c53c1521af305640 Mon Sep 17 00:00:00 2001 From: Marti Raudsepp Date: Fri, 2 Sep 2011 16:17:45 +0300 Subject: [PATCH] sam7utils: Fix build with GCC 4.6 (thanks to jase!), point source to a working mirror, fix depends line --- PKGBUILD | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index b5d46a435b6..37c8057a3f7 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,19 +1,22 @@ # Contributor: Marti Raudsepp pkgname=sam7utils pkgver=0.2.1 -pkgrel=1 +pkgrel=2 pkgdesc="A utility for programming AT91SAM7 series microcontrollers over USB" arch=(i686 x86_64) license=('GPL') +options=('buildflags') url="http://oss.tekno.us/sam7utils/" -#depends=('libusb' 'readline' 'udev') -source=(http://oss.tekno.us/sam7utils/$pkgname-$pkgver.tar.gz +depends=('libusb-compat' 'readline' 'udev') +# Original source: http://oss.tekno.us/sam7utils/$pkgname-$pkgver.tar.gz +source=(http://txrxio.net/wp/basket/makingthings/$pkgname-$pkgver.tar.gz 50-atmel-samba.rules) md5sums=('4027a3d06500b9e4911b3f548ad7b138' 'b3753f3577784190fd4e0ef5d6075323') build() { cd $srcdir/$pkgname-$pkgver + CFLAGS="$CFLAGS -Wno-error=unused-but-set-variable" ./configure --prefix=/usr || return 1 make || return 1 make DESTDIR=$pkgdir install || return 1