Added armadillo

This commit is contained in:
Mick Elliot 2022-01-04 18:55:57 +01:00
parent e1ae3e69ad
commit f076940e6d
3 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,30 @@
# Maintainer: Mick Elliot <m.g.elliot@rug.nl>
# Contributor: Mick Elliot <m.g.elliot@rug.nl>
pkgname=armadillo
sfname=arma
pkgver=10.8.0
pkgrel=1
pkgdesc="C++ library for linear algebra & scientific computing"
arch=('x86_64')
url="http://${sfname}.sourceforge.net/"
license=('Apache')
depends=(openblas lapack)
makedepends=()
optdepends=()
provides=()
source=("http://sourceforge.net/projects/${sfname}/files/${pkgname}-${pkgver}.tar.xz")
sha256sums=('7c5d2fd4bba095733829f7fe03d4a74e732b81c75dd4d40001163487c967d5bc')
build() {
cd "${pkgname}-${pkgver}"
cmake . -DCMAKE_INSTALL_PREFIX="/usr"
make
}
package() {
cd "${pkgname}-${pkgver}"
make DESTDIR=${pkgdir} install
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

View file

@ -0,0 +1,12 @@
#!/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()

View file

@ -0,0 +1,9 @@
build_prefix: extra-x86_64
maintainers:
- github: michaelgelliot
email: m.g.elliot@rug.nl
update_on:
- regex: armadillo-(\d+.\d+.\d+).tar.xz
source: regex
url: https://sourceforge.net/projects/arma/files/