diff options
author | Timo Teräs <timo.teras@iki.fi> | 2023-06-12 11:12:59 +0300 |
---|---|---|
committer | psykose <alice@ayaya.dev> | 2023-06-13 19:26:38 +0200 |
commit | 1bd90cc0c23d022aff8938a4ebc43adfcfbece8f (patch) | |
tree | b5de1dab4116d1070a8c04ae5783811d4ef33ba7 | |
parent | 3aaad95a89d221632530f15fdc31364a12ebf42e (diff) |
testing/foma: new aport
a finite-state compiler and C library
https://fomafst.github.io/
-rw-r--r-- | testing/foma/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/foma/APKBUILD b/testing/foma/APKBUILD new file mode 100644 index 00000000000..2ac7113cebf --- /dev/null +++ b/testing/foma/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=foma +pkgver=0.10.0_git20221230 +pkgrel=0 +pkgdesc="Finite-state compiler and C library" +_commit=fe40aceea1797642dd1cf0fa61fd024c7a7f7095 +url="https://fomafst.github.io/" +arch="all" +license="Apache-2.0" +options="!check" # no tests +makedepends="cmake bison flex ninja readline-dev zlib-dev" +subpackages="libfoma:libs $pkgname-dev" +source="$pkgname-$_commit.tar.gz::https://github.com/mhulden/foma/archive/$_commit.tar.gz" +builddir="$srcdir/$pkgname-$_commit/foma" + +build() { + # does not build with c2x, remove it + sed -i -e 's/"-std=c2x" //g' CMakeLists.txt + + cmake -B build -G Ninja \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_BUILD_TYPE=MinSizeRel + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build + find "$pkgdir" -name "*.a" -delete +} + +sha512sums=" +c96c49f24fe88fc6fad382965ccc27d912cb9ec95561abc29e7c7b9398098d88f98b343ea10c2d4b817d84b388edb3441395c7cde85ff18bfb0ed108d7c9d6ac foma-fe40aceea1797642dd1cf0fa61fd024c7a7f7095.tar.gz +" |