diff options
author | Andrey Vihrov | 2017-02-15 21:37:51 +0200 |
---|---|---|
committer | Andrey Vihrov | 2017-02-15 21:37:51 +0200 |
commit | 79edec5c78033ca71925f77058e79455f2aaafe0 (patch) | |
tree | df289b0e8b9ff879bd58fee4caae43ddc8f74dd5 | |
parent | 7c0b1b5c8a4fde2b7f7fe97d22febcbb171dee25 (diff) | |
download | aur-79edec5c78033ca71925f77058e79455f2aaafe0.tar.gz |
Add check() function
-rw-r--r-- | PKGBUILD | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -23,11 +23,21 @@ prepare() { build() { cd "${pkgname}-${pkgver}" - export CFLAGS+=" -DLTM_DESC -DGMP_DESC" - export EXTRALIBS="${LDFLAGS} -ltommath -lgmp" + CFLAGS+=" -DLTM_DESC -DGMP_DESC" \ + EXTRALIBS="${LDFLAGS} -ltommath -lgmp" \ make -f makefile.shared IGNORE_SPEED=1 } +check() { + cd "${pkgname}-${pkgver}" + + CFLAGS+=" -DLTM_DESC -DUSE_LTM -I./testprof" \ + EXTRALIBS="${LDFLAGS} -L./.libs -L./testprof/.libs \ + '-Wl,--rpath,\$\${ORIGIN}/.libs:\$\${ORIGIN}/testprof/.libs'" \ + make -f makefile.shared test IGNORE_SPEED=1 + ./test +} + package() { cd "${pkgname}-${pkgver}" |