From a00a9848fe491c077b7d6ba97c9b4e520083e975 Mon Sep 17 00:00:00 2001 From: mobinmob Date: Sat, 31 Aug 2019 15:30:12 +0300 Subject: [PATCH] New package: reduce-algebra-bin-20200301 --- srcpkgs/reduce-algebra-bin/template | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 srcpkgs/reduce-algebra-bin/template diff --git a/srcpkgs/reduce-algebra-bin/template b/srcpkgs/reduce-algebra-bin/template new file mode 100644 index 00000000000000..b2d5f4b2c4d568 --- /dev/null +++ b/srcpkgs/reduce-algebra-bin/template @@ -0,0 +1,37 @@ +# Template file for 'reduce-algebra-bin' +pkgname=reduce-algebra-bin +version=20200301 +revision=1 +archs="x86_64" +_svnrev=5286 +_upstr_version=snapshot_2020-03-01 +wrksrc="reduce" +create_wrksrc="yes" +makedepends="patchelf" +depends="gnuplot texlive-bin ImageMagick ncurses-libs" +short_desc="Portable general-purpose computer algebra system" +maintainer="mobinmob " +license="BSD-2-Clause" +homepage="https://reduce-algebra.sourceforge.io/" +distfiles="${SOURCEFORGE_SITE}/reduce-algebra/${_upstr_version}/linux64/reduce-complete_${_svnrev}_amd64.tgz" +checksum=1d4ccb8105278e99b217d69f24d91d66fa3fb01eb9346899a181800f959b0b44 +# Strip when used after patchelf messes some executables. +nostrip="yes" +# libncurses.so.6.1 is not in shlibs +allow_unknown_shlibs=yes + + + +do_install() { + # Patch elf headers + patchelf --replace-needed libtinfo.so.5 libncurses.so.6.1 usr/lib/reduce/cslbuild/csl/reduce + patchelf --replace-needed libtinfo.so.5 libncurses.so.6.1 usr/lib/reduce/cslbuild/csl/csl + patchelf --replace-needed libtinfo.so.5 libncurses.so.6.1 usr/lib/reduce/pslbuild/psl/bpsl + patchelf --replace-needed libtinfo.so.5 libncurses.so.6.1 usr/lib/reduce/cslbuild/csl/bootstrapreduce + patchelf --replace-needed libtinfo.so.5 libncurses.so.6.1 usr/bin/rfcsl + patchelf --replace-needed libtinfo.so.5 libncurses.so.6.1 usr/bin/rfpsl + # Copy all files and folders + vcopy * . + # Install license + vlicense usr/share/reduce/packages/LICENSE +}