mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-13 08:26:35 +02:00
https://github.com/miguelmarco/libbraiding/releases/tag/1.3 https://github.com/miguelmarco/libbraiding/releases/tag/1.3.1
42 lines
1 KiB
Text
42 lines
1 KiB
Text
# Contributor: Grigory Kirillov <txgk@bk.ru>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=libbraiding
|
|
pkgver=1.3.1
|
|
pkgrel=0
|
|
pkgdesc="Library for computations on braid groups"
|
|
url="https://github.com/miguelmarco/libbraiding"
|
|
arch="all"
|
|
license="GPL-2.0-or-later"
|
|
options="!check" # no test suite
|
|
subpackages="$pkgname-dev"
|
|
source="https://github.com/miguelmarco/libbraiding/releases/download/$pkgver/libbraiding-$pkgver.tar.gz"
|
|
|
|
# update config sub to support loongarch64
|
|
prepare() {
|
|
default_prepare
|
|
update_config_sub
|
|
}
|
|
|
|
build() {
|
|
export CXXFLAGS="${CXXFLAGS/-Os/-O3}" # gotta go fast
|
|
|
|
./configure \
|
|
--target=$CTARGET \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--localstatedir=/var \
|
|
--disable-static
|
|
make
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
sha512sums="
|
|
358c53365f318e5fd77f2332e0f70374d720ebacb9426a2d24abc4e4eff179ff315bbd7447211797e097a0bbead7efc73b2c26f1e068bdb86766af1144a2e823 libbraiding-1.3.1.tar.gz
|
|
"
|