summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Rigaut2020-11-16 11:38:23 +1100
committerFrancois Rigaut2020-11-16 11:38:23 +1100
commitcbaa70baf49599ea2886d5e4330347d8040030d1 (patch)
tree5be006f5818904054166ae12b4725d2572377f63
downloadaur-cbaa70baf49599ea2886d5e4330347d8040030d1.tar.gz
initial import
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD66
2 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..f39efd0909d4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = yorick-git
+ pkgdesc = Interpreted language for data processing
+ pkgver = 20200916
+ pkgrel = 1
+ url = http://yorick.sourceforge.net
+ arch = i686
+ arch = x86_64
+ groups = science
+ groups = yorick-all
+ license = BSD
+ makedepends = git
+ depends = glibc
+ depends = rlwrap
+ provides = yorick
+ conflicts = yorick
+ replaces = yorick
+ source = https://raw.githubusercontent.com/frigaut/frigaut-arch-abs-files/master/yorick-cvs-xft-2012sep11.patch
+ md5sums = 3cbd67fed39230c6a859ae601c1557f5
+
+pkgname = yorick-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..089e22920e0b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,66 @@
+# Maintainer: Francois Rigaut <frigaut@gmail.com>
+
+pkgname=yorick-git
+pkgver=20200916
+_pkgmajver=2.2
+pkgrel=1
+pkgdesc="Interpreted language for data processing"
+arch=('i686' 'x86_64')
+license=('BSD')
+url="http://yorick.sourceforge.net"
+groups=('science' 'yorick-all')
+depends=('glibc' 'rlwrap')
+makedepends=('git')
+provides=('yorick')
+conflicts=('yorick')
+replaces=('yorick')
+source=(.AURINFO)
+
+source=(https://raw.githubusercontent.com/frigaut/frigaut-arch-abs-files/master/yorick-cvs-xft-2012sep11.patch)
+
+md5sums=('3cbd67fed39230c6a859ae601c1557f5')
+
+_gitroot="git://github.com/LLNL/yorick.git"
+_gitname="yorick"
+
+build() {
+ cd ${srcdir}
+ msg "Connecting to git repo..."
+ if [ -d ${srcdir}/$_gitname ] ; then
+ cd $_gitname && git pull origin
+ msg "The local files are updated."
+ else
+ git clone $_gitroot
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting script install..."
+
+ git clone $_gitname $_gitname-build
+ cd ${srcdir}/$_gitname-build
+
+# XFT patch. 2010nov02 version. Fixed some bugs.
+ # patch -p1 < ../yorick-cvs-xft-2012sep11.patch
+
+ make prefix=/usr ysite || return 1
+
+ make config
+# 2010sep17: removed next 4 lines (see above for xft patch)
+ echo 'COPT_DEFAULT=-O2' >> Make.cfg
+ echo 'Y_CFLAGS=-DHAVE_XFT' >> Make.cfg
+ echo 'XINC=-I/usr/include/freetype2' >> Make.cfg
+ echo 'XLIB=-lXft' >> Make.cfg
+ echo 'X11LIB=$(XLIB) -lX11 -lfontconfig' >> Make.cfg
+
+ make
+
+ # build wrapper to start rlwrap yorick
+ echo "#!/bin/sh" > yorick_wrapper
+ echo "exec rlwrap -s 2000 -c /usr/lib/yorick/${_pkgmajver}/bin/yorick \$*" >> yorick_wrapper
+}
+
+package() {
+ cd ${srcdir}/$_gitname-build
+ make INSTALL_ROOT=${pkgdir} install || return 1
+ install -DTm755 ./yorick_wrapper ${pkgdir}/usr/bin/yorick
+}