commit 36cea8dcbe841a67ec06da6ab3f0009951e4cab7 Author: Marti Raudsepp Date: Fri Oct 30 11:21:17 2009 +0200 import sam7utils: A utility for programming AT91SAM7 series microcontrollers over USB diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000000..0803b9658f3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = sam7utils + pkgdesc = A utility for programming AT91SAM7 series microcontrollers over USB + pkgver = 0.2.1 + pkgrel = 3 + url = https://bitbucket.org/intgr/sam7utils + arch = i686 + arch = x86_64 + license = GPL + depends = libusb-compat + depends = readline + depends = udev + options = buildflags + source = https://bitbucket.org/intgr/sam7utils/downloads/sam7utils-0.2.1.tar.gz + source = 50-atmel-samba.rules + md5sums = 4027a3d06500b9e4911b3f548ad7b138 + md5sums = b3753f3577784190fd4e0ef5d6075323 + +pkgname = sam7utils + diff --git a/50-atmel-samba.rules b/50-atmel-samba.rules new file mode 100644 index 00000000000..86eb188594c --- /dev/null +++ b/50-atmel-samba.rules @@ -0,0 +1,5 @@ +# Put this file in /etc/udev/rules.d + +# Allows users in 'users' group access SAM-BA USB devices (part of sam7utils) +# Atmel Corp. at91sam SAMBA bootloader +ATTR{idVendor}=="03eb", ATTR{idProduct}=="6124", MODE="660", GROUP="users" diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000000..b5d46a435b6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Contributor: Marti Raudsepp +pkgname=sam7utils +pkgver=0.2.1 +pkgrel=1 +pkgdesc="A utility for programming AT91SAM7 series microcontrollers over USB" +arch=(i686 x86_64) +license=('GPL') +url="http://oss.tekno.us/sam7utils/" +#depends=('libusb' 'readline' 'udev') +source=(http://oss.tekno.us/sam7utils/$pkgname-$pkgver.tar.gz + 50-atmel-samba.rules) +md5sums=('4027a3d06500b9e4911b3f548ad7b138' + 'b3753f3577784190fd4e0ef5d6075323') + +build() { + cd $srcdir/$pkgname-$pkgver + ./configure --prefix=/usr || return 1 + make || return 1 + make DESTDIR=$pkgdir install || return 1 + + install -d $pkgdir/etc/udev/rules.d + install $srcdir/50-atmel-samba.rules $pkgdir/etc/udev/rules.d +}