diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 14 |
2 files changed, 13 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = octave-mechanics pkgdesc = Library with functions useful for numerical computation in classical mechanics and structural analysis pkgver = 1.3.1 - pkgrel = 5 + pkgrel = 6 url = https://octave.sourceforge.io/mechanics install = octave-mechanics.install arch = any @@ -11,7 +11,7 @@ _pack=mechanics pkgname=octave-${_pack} pkgver=1.3.1 -pkgrel=5 +pkgrel=6 pkgdesc="Library with functions useful for numerical computation in classical mechanics and structural analysis" arch=(any) url="https://octave.sourceforge.io/${_pack}" @@ -24,6 +24,7 @@ backup=() options=() install=${pkgname}.install _archive=${_pack}-${pkgver}.tar.gz +_archive_patched=${_pack}-${pkgver}-patched.tar.gz source=("https://downloads.sourceforge.net/octave/${_archive}") noextract=("${_archive}") sha512sums=('e70d0e6e0918c052c7339e8979cebd2fcda63333c1ab2a05e45bf174b60dd7601e02e255dc97dbc359d59114b52f2654f2b7be6046a9f6885ac5f0a29f740e87') @@ -39,6 +40,15 @@ _install_dir() { cp -rT "$src" "$dst" } +prepare() { + cd "$srcdir" + tar xzf "$_archive" + # https://github.com/DragonFlyBSD/DPorts/blob/master/math/octave-forge-mechanics/files/patch-verletstep__boxed.cc + sed -i 's/feval/octave::feval/g' ${_pack}/inst/molecularDynamics/src/verletstep_boxed.cc + sed -i 's/feval/octave::feval/g' ${_pack}/inst/molecularDynamics/src/verletstep.cc + tar czf "$_archive_patched" "$_pack" +} + build() { _prefix="$srcdir"/install_prefix _archprefix="$srcdir"/install_archprefix @@ -48,7 +58,7 @@ build() { cat <<-EOF pkg local_list octave_packages; pkg prefix $_prefix $_archprefix; - pkg install -verbose -nodeps $_archive; + pkg install -verbose -nodeps $_archive_patched; EOF )" } |