From 121b353b59fde7d7438066e6f7cfac749c337b01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 22 Jul 2020 18:32:47 +0700 Subject: [PATCH] New package: pari-2.11.4 --- srcpkgs/pari-devel | 1 + srcpkgs/pari/template | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 120000 srcpkgs/pari-devel create mode 100644 srcpkgs/pari/template diff --git a/srcpkgs/pari-devel b/srcpkgs/pari-devel new file mode 120000 index 00000000000..7e7f2a2460f --- /dev/null +++ b/srcpkgs/pari-devel @@ -0,0 +1 @@ +pari \ No newline at end of file diff --git a/srcpkgs/pari/template b/srcpkgs/pari/template new file mode 100644 index 00000000000..831bdf64589 --- /dev/null +++ b/srcpkgs/pari/template @@ -0,0 +1,41 @@ +# Template file for 'pari' +pkgname=pari +version=2.11.4 +revision=1 +build_style=configure +build_helper=qemu +configure_script=./Configure +configure_args="--prefix=/usr" +make_build_target=all +hostmakedepends="perl texlive" +makedepends="gmp-devel libX11-devel readline-devel" +short_desc="Fast computations library in number theory" +maintainer="Đoàn Trần Công Danh " +license="GPL-2.0-or-later" +homepage="https://pari.math.u-bordeaux.fr" +distfiles="https://pari.math.u-bordeaux.fr/pub/pari/unix/${pkgname}-${version}.tar.gz" +checksum="bfc88fc4f7352f4840e6e352c72f0369cbea8a45403b1834a6269f3709970b1c" + +post_patch() { + vsed -i -e 's/ulong/unsigned long/' config/has_sse2.c + cat <<-EOF >config/arch-osname + #!/bin/sh + echo "${XBPS_TARGET_MACHINE%-musl}-linux" + EOF +} + +pre_configure() { + export LD="$CC" + if [ "$CROSS_BUILD" ]; then + export RUNTEST="/usr/bin/qemu-$XBPS_TARGET_QEMU_MACHINE-static" + fi +} + +pari-devel_package() { + short_desc+=" - development files" + depends="pari-${version}_${revision}" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.so" + } +}