Package Details: yorick 2_2_04-2

Git Clone URL: https://aur.archlinux.org/yorick.git (read-only, click to copy)
Package Base: yorick
Description: Interpreted language for data processing
Upstream URL: http://yorick.github.com/
Licenses: BSD
Groups: science, yorick-all
Submitter: xyproto
Maintainer: frigaut
Last Packager: haawda
Votes: 3
Popularity: 0.000000
First Submitted: 2015-11-01 21:37 (UTC)
Last Updated: 2019-10-18 20:09 (UTC)

Latest Comments

frigaut commented on 2020-11-17 12:16 (UTC)

Please don't use this package for now, use yorick-git instead. Thanks.

haawda commented on 2020-11-16 19:58 (UTC)

packagei is orphaned, just fix it...

frigaut commented on 2020-11-16 01:10 (UTC) (edited on 2020-11-16 01:13 (UTC) by frigaut)

Hi all. Indeed there is an issue with this package, as outlined by oniram. I have contacted the packager. I have also created a yorick-git package, which should work, as well as yorick packages for a number of plugins. Just look up yorick in the AUR search. This all should work; I have been testing. If anyone encountered any issue, let me know.

oniram commented on 2020-03-03 19:57 (UTC)

The generated wrap.sh file points to the wrong location. It looks for the executable at /usr/lib/yorick/2_2_04/bin/yorick instead of the correct location /usr/lib/yorick/2.2/bin/yorick.

Find below a patch that converts pkgver back to 2.2.04, uses the right executable path in wrap.sh, and deletes git from makedepends.

--- PKGBUILD    2020-03-03 12:45:36.291427613 -0700
+++ PKGBUILD.new    2020-03-03 12:46:40.221900815 -0700
@@ -2,20 +2,22 @@
 # Contributor: Francois Rigaut <frigaut@gmail.com>

 pkgname=yorick
-pkgver=2_2_04
-pkgrel=2
+pkgver=2.2.04
+pkgrel=1
+_gittag="y_${pkgver//./_}"        # release tags look like: y_2_2_04
+_major_minor_ver="${pkgver%.*}"   # major and minor version: 2.2
 pkgdesc='Interpreted language for data processing'
 arch=('x86_64' 'i686')
 license=('BSD')
 url='http://yorick.github.com/'
 groups=('science' 'yorick-all')
 depends=('rlwrap')
-makedepends=('git' 'pkgconfig')
-source=("https://github.com/LLNL/yorick/archive/y_$pkgver.tar.gz")
+makedepends=('pkgconfig')
+source=("https://github.com/LLNL/yorick/archive/${_gittag}.tar.gz")
 sha256sums=('4a4f3a18aed533cc5fadbb3d4bafb48f04834a22cbff6ad5c19d9dba74facbda')

 prepare() {
-  cd ${pkgname}-y_${pkgver}
+  cd ${pkgname}-${_gittag}

   make prefix=/usr ysite
   make config
@@ -27,16 +29,16 @@

   # Wrapper script for rlwrap and yorick
   echo "#!/bin/sh" > wrap.sh
-  echo "exec rlwrap -s 2000 -c /usr/lib/yorick/$pkgver/bin/yorick \$*" >> wrap.sh
+  echo "exec rlwrap -s 2000 -c /usr/lib/yorick/${_major_minor_ver}/bin/yorick \$*" >> wrap.sh
 }

 build() {
-  cd ${pkgname}-y_${pkgver}
+  cd ${pkgname}-${_gittag}
   make
 }

 package() {
-  cd ${pkgname}-y_${pkgver}
+  cd ${pkgname}-${_gittag}
   make INSTALL_ROOT="$pkgdir" install
   install -DTm755 wrap.sh "$pkgdir/usr/bin/yorick"
 }