mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-11 17:43:51 +02:00
New package: pari-2.11.4
This commit is contained in:
parent
ea1c0c3fb8
commit
121b353b59
2 changed files with 42 additions and 0 deletions
1
srcpkgs/pari-devel
Symbolic link
1
srcpkgs/pari-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
pari
|
41
srcpkgs/pari/template
Normal file
41
srcpkgs/pari/template
Normal file
|
@ -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 <congdanhqx@gmail.com>"
|
||||
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"
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue