Skip to content
Snippets Groups Projects
Commit 19f838ec authored by Antoni Aloy Torrens's avatar Antoni Aloy Torrens Committed by Leo
Browse files

testing/muparser: new aport

parent 76f490f2
No related branches found
No related tags found
1 merge request!18083testing/lxqt-desktop: new aport
# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=muparser
pkgver=2.3.2
pkgrel=0
pkgdesc="Fast math parser library"
url="https://beltoforion.de/en/muparser/"
arch="all !s390x" # s390x blocked by openmp
license="BSD-2-Clause"
makedepends="cmake openmp-dev"
subpackages="$pkgname-dev $pkgname-doc"
options="!check" # No testsuite
source="$pkgname-$pkgver.tar.gz::https://github.com/beltoforion/muparser/archive/v$pkgver.tar.gz"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
$CMAKE_CROSSOPTS .
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --build build --target install
install -Dm644 "$builddir"/License.txt \
"$pkgdir"/usr/share/licenses/muparser/LICENSE
}
sha512sums="8ef5c8b3834da3995a782b7364a4eb4197fb706bee4cadabe5511d2a9cf2912c3db6de422a91eff7f9690f8c9c355b9900335e940749d5c243cb732ac1992aef muparser-2.3.2.tar.gz"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment