aboutsummaryrefslogtreecommitdiff
path: root/libxml2/Pkgfile
blob: 5e434b2730d5063f79b2ed94110a1a32e7270eb6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Description: XML library version 2
# URL: https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: zlib
# Optional: doxygen

name=libxml2
version=2.14.6
release=1
source=(https://download.gnome.org/sources/libxml2/${version:0:4}/$name-$version.tar.xz)

build() {
    prt-get isinst doxygen && PKGMK_LIBXML2+=' -D python=enabled'

    # Don't depend on git
    sed -i '20,23s/^/#/' $name-$version/meson.build

    meson setup $name-$version build $PKGMK_LIBXML2 \
        --prefix=/usr \
        --buildtype=plain \
        --wrap-mode nodownload \
        -D b_lto=true \
        -D b_pie=true \
        -D legacy=enabled

    meson compile -C build -j ${JOBS:-1}
    DESTDIR=$PKG meson install -C build
}