updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / bandwidth / PKGBUILD
blobe407fa4fe16b83b7162ca76b618e150cdf8c7fa1
1 # Maintainer: kfgz <kfgz at interia dot pl>
3 pkgname=bandwidth
4 pkgver=0.26c
5 pkgrel=1
6 pkgdesc="A benchmark that attempts to measure memory bandwidth"
7 arch=('i686' 'x86_64')
8 url="http://caladan.tk/"
9 license=('GPL')
10 makedepends=('nasm')
11 source=(http://home.comcast.net/~fbui/${pkgname}-${pkgver}.tar.bz2)
12 md5sums=('ea044c99bea811d162b5f2a3dcf136ce') 
14 build() {
15   cd ${srcdir}/${pkgname}-${pkgver}
16   if [ "${CARCH}" = "x86_64" ]; then 
17      make bandwidth64
18    else
19      make bandwidth32
20   fi
23 package() {
24   cd ${srcdir}/${pkgname}-${pkgver}
25   if [ "${CARCH}" = "x86_64" ]; then 
26      install -Dm755 bandwidth64 ${pkgdir}/usr/bin/bandwidth
27    else
28      install -Dm755 bandwidth32 ${pkgdir}/usr/bin/bandwidth
29   fi