aports/testing/htmlcxx/APKBUILD
qiangxuhui c46fe13d3c testing/htmlcxx: fix build on loongarch64
Update config sub for loongarch64.
2024-06-13 05:41:14 +00:00

35 lines
862 B
Text

# Contributor: shum <shum@posteo.net>
# Maintainer: shum <shum@posteo.net>
pkgname=htmlcxx
pkgver=0.87
pkgrel=1
pkgdesc="Simple non-validating CSS1 and HTML parser for C++"
url="https://htmlcxx.sourceforge.net/"
arch="all"
license="LGPL-2.0-only"
options="!check" # no testsuite
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://sourceforge.net/projects/htmlcxx/files/v$pkgver/htmlcxx-$pkgver.tar.gz"
prepare() {
default_prepare
update_config_sub
}
build() {
# gcc12 defaults to 17 which fails due to throw()
export CXXFLAGS="$CXXFLAGS -std=c++14"
./configure \
--prefix=/usr \
--build=$CBUILD \
--host=$CHOST
make
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="
391b94c7ea2d17a04d46ac80f8146e6c2b14b289379c40f3d432ed9c0f36222ced6384d725cdecfc352e28c30f11976249b6a3f7133bbee3161a7883d197fca7 htmlcxx-0.87.tar.gz
"