summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d7d7ee7db8acfbd27fe5551e16ed05aa072abc79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
pkgname=bandwidth
pkgver=1.1b
pkgrel=1
pkgdesc="Benchmark memory and network bandwidth"
arch=('i686' 'x86_64')
url="http://home.comcast.net/~veritas/bandwidth.html"
license=('GPL')
makedepends=('nasm')
options=(!makeflags)
source=(http://zsmith.co/archives/${pkgname}-${pkgver}.tar.gz)
md5sums=('ae47329daea5c422f552e38b16856376') 

build() {
  cd "${srcdir}"/${pkgname}-1.1
  if [ "${CARCH}" = "x86_64" ]; then 
     make bandwidth64
   else
     make bandwidth32
  fi
}

package() {
  cd "${srcdir}"/${pkgname}-1.1
  if [ "${CARCH}" = "x86_64" ]; then 
     install -Dm755 bandwidth64 "${pkgdir}"/usr/bin/bandwidth
   else
     install -Dm755 bandwidth32 "${pkgdir}"/usr/bin/bandwidth
  fi
}