summaryrefslogblamecommitdiff
path: root/user/libixion/APKBUILD
blob: d262e50e6098e769ddde382b7cc57f16885270bd (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                              
             





                                                        
                  
                                           
                          
                                                                                                                 

         



                                                                      










                                         



                  




                                      



                                             
                                                                                                                                                                     
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=libixion
pkgver=0.19.0
pkgrel=0
pkgdesc="A general purpose formula parser & interpreter"
url="https://gitlab.com/ixion/ixion"
arch="all"
license="MPL-2.0"
depends=""
depends_dev="mdds"
makedepends="$depends_dev boost-dev spdlog"
subpackages="$pkgname-dev"
source="https://gitlab.com/api/v4/projects/ixion%2Fixion/packages/generic/source/$pkgver/$pkgname-$pkgver.tar.xz"

build() {
	# GCC 13 changed default fp precision behavior. (#1193, #1214)
	export CXXFLAGS="${CXXFLAGS} -fexcess-precision=fast"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-python
	make
}

check() {
	make check
}

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

dev() {
	default_dev
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}

sha512sums="f06edbcf5ae7459a46e01273952ce6fbc4e8f2b7782c7e07645dc30e102f20f542e449acafc26484765207b10656e0b350f4108cbf1e03947ee7267254cf6f97  libixion-0.19.0.tar.xz"