add depen of tnt

This commit is contained in:
starsareintherose 2021-12-09 19:52:01 +00:00
parent b65d75d924
commit f4eab0cd60
6 changed files with 118 additions and 0 deletions

17
pvm/.SRCINFO Normal file
View file

@ -0,0 +1,17 @@
pkgbase = pvm
pkgdesc = Parallel Virtual Machine
pkgver = 3.4.6
pkgrel = 5
url = http://www.csm.ornl.gov/pvm/
install = pvm.install
arch = i686
arch = x86_64
license = GPL
depends = glibc
source = http://www.netlib.org/pvm3/pvm3.4.6.tgz
source = pvm.profile
sha512sums = a8ddb8fc944bbe64d185eeffba0e020f28af4c8175a446511deca55d7c4f5cf62884c8c5dcb03dd9700bcc48368c8dab353e45656094d139385d88fdf34dd78a
sha512sums = 8c7a612abd0f9f132900a2e4839d9ac2cbcae88cc3d835b82cdad25c3dddcf03f98542afb4d15ac4360523ce6f36057e1269af28694eebf1621cf5b35d0ca920
pkgname = pvm

56
pvm/PKGBUILD Normal file
View file

@ -0,0 +1,56 @@
# Contributor: Thomas Zervogiannis <tzervo@gmail.com>
# Contributor: Philipp Robbel <robbel@gmail.com>
# Contributor: Mikołaj Milej <mikolajmm@gmail.com>
pkgname=pvm
pkgver=3.4.6
pkgrel=5
pkgdesc="Parallel Virtual Machine"
url="http://www.csm.ornl.gov/pvm/"
license=('GPL')
depends=('glibc')
arch=('i686' 'x86_64')
install=${pkgname}.install
source=(http://www.netlib.org/pvm3/$pkgname$pkgver.tgz pvm.profile)
sha512sums=('a8ddb8fc944bbe64d185eeffba0e020f28af4c8175a446511deca55d7c4f5cf62884c8c5dcb03dd9700bcc48368c8dab353e45656094d139385d88fdf34dd78a'
'8c7a612abd0f9f132900a2e4839d9ac2cbcae88cc3d835b82cdad25c3dddcf03f98542afb4d15ac4360523ce6f36057e1269af28694eebf1621cf5b35d0ca920')
build() {
cd $srcdir/${pkgname}3
# Make pvm FORTRAN90-friendly
sed -i 's/^c/!/' include/fpvm3.h include/fpvm3_watcom.h
for i in conf/LINUX*def; do
sed -i.orig -e '/^ARCHCFLAGS/s~/usr/bin/rsh\\"~/usr/bin/ssh\\" ${CXXFLAGS}~' "${i}"
done
unset PVM_ARCH
export PVM_ROOT=$srcdir/${pkgname}3
make || return 1
}
package() {
cd $srcdir/${pkgname}3
mkdir -p $pkgdir/usr/man
mv $srcdir/${pkgname}3/man/man1 $pkgdir/usr/man
mkdir -p $pkgdir/usr/man/man3
mv $srcdir/${pkgname}3/man/man3 $pkgdir/usr/man
# remove some unnecessary files
# rm -rf Readme.* Makefile* WIN32 examples gexamples conf console make* cygwin.mak doc hoster libfpvm man misc pvmgs rm shmd src tasker tracer xdr xep
# find . -name '*.cmd' -o -name '*.bat' -o -name '*.stub' | xargs rm -f
# install the rest of pvm
mkdir -p $pkgdir/usr/share/${pkgname}3
cp -r * $pkgdir/usr/share/${pkgname}3
mkdir -p $pkgdir/usr/bin
ln -s /usr/share/pvm3/lib/LINUX/pvm $pkgdir/usr/bin/pvm
ln -s /usr/share/pvm3/lib/LINUX/pvmd3 $pkgdir/usr/bin/pvmd3
ln -s /usr/share/pvm3/lib/LINUX/pvmgs $pkgdir/usr/bin/pvmgs
# environment variables
mkdir -p $pkgdir/etc/profile.d
install -m755 $startdir/${pkgname}.profile $pkgdir/etc/profile.d/${pkgname}3.sh
}

10
pvm/lilac.py Normal file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env python3
from lilaclib import *
def pre_build():
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
run_cmd(['updpkgsums'])
def post_build():
git_add_files('PKGBUILD')
git_commit()

8
pvm/lilac.yaml Normal file
View file

@ -0,0 +1,8 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: starsareintherose@outlook.com
update_on:
- regex: pvm(\d+.\d+.\d+).tgz
source: regex
url: http://www.netlib.org/pvm3/

25
pvm/pvm.install Normal file
View file

@ -0,0 +1,25 @@
post_install() {
echo "-----------------------------------------------"
echo "Environment variables have changed. Either log"
echo "out and back in or source /etc/profile before"
echo "using pvm!"
echo ""
echo "NOTE: To enable other computers to invoke the"
echo " PVM daemon on your machine, add the"
echo " source /etc/profile.d/pvm3.sh"
echo " command to your .bashrc"
echo "-----------------------------------------------"
}
post_upgrade() {
/bin/true
}
pre_remove() {
/bin/true
}
op=$1
shift
$op "$@"

2
pvm/pvm.profile Normal file
View file

@ -0,0 +1,2 @@
export PVM_ROOT=/usr/share/pvm3
export PVM_ARCH=LINUX