Skip to content

Instantly share code, notes, and snippets.

@agraef
Created March 1, 2017 18:28
Show Gist options
  • Select an option

  • Save agraef/60e0c2a4d04cf2e3cdf8dedcff56f349 to your computer and use it in GitHub Desktop.

Select an option

Save agraef/60e0c2a4d04cf2e3cdf8dedcff56f349 to your computer and use it in GitHub Desktop.
AUR octave-hg PKGBUILD correction
diff --git a/PKGBUILD b/PKGBUILD
index 050daf4..d023d70 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -69,6 +69,7 @@ package() {
cd "$srcdir"/${_hgrepo}-local/build
make DESTDIR=${pkgdir} install
# add octave library path to ld.so.conf.d
+ _appver=$(awk -F", " '/bugs/ {print $2}' "$srcdir/$_hgrepo"/configure.ac|tr -d []|tr - _)
install -d "${pkgdir}/etc/ld.so.conf.d"
echo "/usr/lib/${_hgrepo}/${_appver}" > "${pkgdir}/etc/ld.so.conf.d/${_hgrepo}.conf"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment