diff options
author | pingplug | 2022-12-05 16:09:09 +0800 |
---|---|---|
committer | pingplug | 2022-12-05 16:09:09 +0800 |
commit | 187a5a6d9e3a962c7e259d7d32cf2eb920721f93 (patch) | |
tree | e23482ea12f034ecc1341de3ceaf785e9d877f84 /PKGBUILD | |
parent | 136e71d5f9b979e5e8f70a6616a2450187732d3e (diff) | |
download | aur-187a5a6d9e3a962c7e259d7d32cf2eb920721f93.tar.gz |
fix build error
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -10,7 +10,7 @@ _pack=sparsersb pkgname=octave-$_pack pkgver=1.0.9 -pkgrel=1 +pkgrel=2 pkgdesc="Interface to the librsb package implementing the RSB sparse matrix format." arch=(any) url="https://gnu-octave.github.io/packages/$_pack/" @@ -38,6 +38,17 @@ _install_dir() { cp -rT "$src" "$dst" } +prepare() { + # fix build error with new version of octave + tar xf $_archive + cd "$srcdir/$_pack-$pkgver" + sed -i "s|mex_get_ir|ridx|g" "src/sparsersb.cc" + sed -i "s|mex_get_jc|cidx|g" "src/sparsersb.cc" + cd "$srcdir" + rm $_archive + tar cf $_archive "$_pack-$pkgver" +} + build() { _prefix="$srcdir"/install_prefix _archprefix="$srcdir"/install_archprefix |