aports/testing/htmlcxx/APKBUILD

36 lines
862 B
Text
Raw Permalink Normal View History

2021-05-17 16:26:20 +03:00
# Contributor: shum <shum@posteo.net>
# Maintainer: shum <shum@posteo.net>
pkgname=htmlcxx
pkgver=0.87
2022-10-14 12:18:30 +00:00
pkgrel=1
2021-05-17 16:26:20 +03:00
pkgdesc="Simple non-validating CSS1 and HTML parser for C++"
2022-10-14 12:18:30 +00:00
url="https://htmlcxx.sourceforge.net/"
2021-05-17 16:26:20 +03:00
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
}
2021-05-17 16:26:20 +03:00
build() {
2022-10-14 13:21:34 +00:00
# gcc12 defaults to 17 which fails due to throw()
export CXXFLAGS="$CXXFLAGS -std=c++14"
./configure \
--prefix=/usr \
--build=$CBUILD \
--host=$CHOST
2021-05-17 16:26:20 +03:00
make
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="
391b94c7ea2d17a04d46ac80f8146e6c2b14b289379c40f3d432ed9c0f36222ced6384d725cdecfc352e28c30f11976249b6a3f7133bbee3161a7883d197fca7 htmlcxx-0.87.tar.gz
"