summaryrefslogtreecommitdiff
path: root/user/muparser/APKBUILD
blob: ff5fbda6f3d19ca23a13a7476d45e274012e462d (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
33
34
35
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=muparser
pkgver=2.2.6
pkgrel=0
pkgdesc="Fast math parser library"
url="http://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() {
        cd "$builddir/build"

        cmake \
		-DBUILD_SHARED_LIBS=ON \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_VERBOSE_MAKEFILE=ON \
		$cmake_opts \
		../
        make
}

package() {
        cd "$builddir/build"
        make DESTDIR="$pkgdir" install
}

sha512sums="2b34e740a3d07767b2b97871d11f845afd74e4abe7ba5ceb5dd9bd8405aa45b8dcb2c5980535b05b92ba680cfc6f722948bf9e7f8858a335c9b63f7ac384107c  muparser-2.2.6.tar.gz"