summaryrefslogtreecommitdiff
path: root/user/muparser/APKBUILD
blob: f088af0fa41168589ef13a185dfefea53263ec01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=muparser
pkgver=2.2.6.1
pkgrel=0
pkgdesc="Fast math parser library"
url="https://beltoforion.de/article.php?a=muparser"
arch="all"
options="!check"  # No test suite.
license="MIT"
depends=""
makedepends="cmake"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/beltoforion/$pkgname/archive/v$pkgver.tar.gz"

build() {
        cmake \
		-DBUILD_SHARED_LIBS=ON \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_VERBOSE_MAKEFILE=ON \
		$cmake_opts \
		-Bbuild
        make -C build
}

package() {
        make DESTDIR="$pkgdir" -C build install
}

sha512sums="01bfc8cc48158c8413ae5e1da2ddbac1c9f0b9075470b1ab75853587d641dd195ebea268e1060a340098fd8015bc5f77d8e9cde5f81cffeade2f157c5f295496  muparser-2.2.6.1.tar.gz"