blob: 581f626097a19dde8baeade50e52faffc55124db (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
_orig_ver=1.14.10
_orig_patch=
_orig_fullver=$_orig_ver$_orig_patch
pkgname=bandwidth
pkgver=$_orig_ver${_orig_patch:+.$_orig_patch}
pkgrel=1
pkgdesc="Benchmark memory bandwidth"
arch=('i686' 'x86_64')
url="http://zsmith.co/bandwidth.php"
license=('GPL')
depends=('freetype2')
makedepends=('nasm')
options=(!makeflags !debug)
sha256sums=('fece39a6dfb10c65033d6d79b2356e9ee714e936862b075ebdabd7277ce914a6')
source=("https://zsmith.co/archives/${pkgname}-${_orig_fullver}.tar.bz2")
prepare() {
cd "${srcdir}/${pkgname}-${_orig_fullver}"
make clean
./configure
}
build() {
cd "${srcdir}/${pkgname}-${_orig_fullver}"
# makefile uses LIB instead of LDFLAGS, and needs to know where OOC is
export LIB="${LDFLAGS} -lm OOC/libOOC.a $(pkg-config --libs freetype2)"
if [ "${CARCH}" = "x86_64" ]; then
make -f Makefile-linux-x86_64 bandwidth64
else
make -f Makefile-linux-i386 bandwidth32
fi
}
package() {
cd "${srcdir}/${pkgname}-${_orig_fullver}"
if [ "${CARCH}" = "x86_64" ]; then
install -Dm755 bandwidth64 "${pkgdir}"/usr/bin/bandwidth
else
install -Dm755 bandwidth32 "${pkgdir}"/usr/bin/bandwidth
fi
}
|