23 lines
589 B
Plaintext
23 lines
589 B
Plaintext
# Description: XML library version 2
|
|
# URL: http://xmlsoft.org/
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
# Depends on: zlib xz
|
|
|
|
name=libxml2
|
|
version=2.9.12
|
|
release=2
|
|
source=(https://gitlab.gnome.org/GNOME/libxml2/-/archive/v$version/libxml2-v$version.tar.bz2)
|
|
|
|
build() {
|
|
cmake -S $name-v$version -B build -G Ninja \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
-D LIBXML2_WITH_PYTHON=OFF \
|
|
-Wno-dev
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
rm -r $PKG/usr/share/doc
|
|
}
|