aports/testing/cliquer/APKBUILD

50 lines
1 KiB
Text

# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer:
pkgname=cliquer
pkgver=1.22
pkgrel=2
pkgdesc="Set of C routines for finding cliques in an arbitrary weighted graph"
url="https://github.com/dimpase/autocliquer"
arch="all"
license="GPL-2.0-or-later"
source="https://github.com/dimpase/autocliquer/releases/download/v$pkgver/cliquer-$pkgver.tar.gz"
subpackages="
$pkgname-tests:_tests
$pkgname-static
$pkgname-libs
$pkgname-dev
"
prepare() {
default_prepare
# config.sub is too old to recognize loongarch64-alpine-linux-musl
update_config_sub
}
build() {
export CFLAGS="${CFLAGS/-Os/-O3}" # gotta go fast
./configure \
--target="$CTARGET" \
--build="$CBUILD" \
--host="$CHOST" \
--prefix=/usr
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
}
_tests() {
pkgdesc="$pkgdesc (tests)"
amove usr/share
}
sha512sums="
3285cb0a3987ff730d9f9b25419a98201f399daf28444179ba8902211ddda87adcc7189f5b94f062d0648039a1b6217b80c8db482887d7dc8552b20459eff861 cliquer-1.22.tar.gz
"