diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-07-18 12:59:47 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-07-18 12:59:47 -0300 |
commit | 12c074375919d2de177eb9456352866902118a03 (patch) | |
tree | 3f6b2e5baadedbc7901bf3e614fd017ca8aaee52 /community/newton-dynamics/PKGBUILD | |
parent | 598db82f25ffe3557e395a11f379de65af9e1ac1 (diff) | |
parent | ddddf9c453076a407bfdbf3e030e606f31ee2b86 (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
community/dopewars/PKGBUILD
community/virtualbox/PKGBUILD
core/lvm2/PKGBUILD
extra/aspell/PKGBUILD
extra/gnome-python-extras/PKGBUILD
extra/libproxy/PKGBUILD
extra/live-media/PKGBUILD
extra/ocaml/PKGBUILD
extra/putty/PKGBUILD
extra/python/PKGBUILD
extra/ruby/PKGBUILD
kde-unstable/calligra/PKGBUILD
multilib-testing/lib32-mesa/PKGBUILD
testing/mesa/PKGBUILD
Diffstat (limited to 'community/newton-dynamics/PKGBUILD')
-rw-r--r-- | community/newton-dynamics/PKGBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/community/newton-dynamics/PKGBUILD b/community/newton-dynamics/PKGBUILD new file mode 100644 index 000000000..93a578450 --- /dev/null +++ b/community/newton-dynamics/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> +# Contributor: Josh Taylor (deficite) <joshtaylor.mail@gmail.com> +# Contributor: Christophe Robin (bombstrike) <crobin@php.net> +pkgname=newton-dynamics +pkgver=2.33 +pkgrel=1 +pkgdesc="A simple physics API" +arch=('i686' 'x86_64') +url="http://www.newtondynamics.com" +license=('custom') +depends=() +makedepends=('unrar') +source=("http://newton-dynamics.googlecode.com/files/newton-dynamics-${pkgver}.rar" + 'assert-fix.patch') +md5sums=('b8394c7c3f4e8a1bd41ffa07c5979a9e' + 'fa747c99d0516d66f03175fca1f1ba34') + +build() { + _srcdir="${srcdir}/newton-dynamics-${pkgver}" + [ "$CARCH" = "i686" ] && platform="linux32" + [ "$CARCH" = "x86_64" ] && platform="linux64" + builddir="${_srcdir}/coreLibrary_200/projets/${platform}" + + # clean build directory + [ -d "${_srcdir}" ] && rm -Rf "${_srcdir}" + + # decompress package + cd "${srcdir}" + unrar x "newton-dynamics-${pkgver}.rar" + + # needed for building + mkdir -p "${_srcdir}/packages/${platform}" + + # patch issue with an _ASSERT call instead of _ASSERTE + cd "${_srcdir}/coreLibrary_200" + patch -p0 < "${srcdir}/assert-fix.patch" + + ## build lib + cd "${builddir}" + make + + install -D -m644 "${builddir}/libNewton.a" "${pkgdir}/usr/lib/libNewton.a" + install -D -m755 "${builddir}/libNewton.so" "${pkgdir}/usr/lib/libNewton.so" + install -D -m644 "${_srcdir}/coreLibrary_200/source/newton/Newton.h" "${pkgdir}/usr/include/Newton.h" +} |