summaryrefslogtreecommitdiff
path: root/user/muparser/APKBUILD
blob: 4918558324e61342985b1ba88adfb5ec4aff9af2 (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: Sheila Aman <sheila@vulpine.house>
# Maintainer: Sheila Aman <sheila@vulpine.house>
pkgname=muparser
pkgver=2.3.2
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="8ef5c8b3834da3995a782b7364a4eb4197fb706bee4cadabe5511d2a9cf2912c3db6de422a91eff7f9690f8c9c355b9900335e940749d5c243cb732ac1992aef  muparser-2.3.2.tar.gz"