libxml2: make it so most includes just work (#435)

* make it so most includes just work

* work out cleaning properly

* back to @main

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
Max Howell 2023-03-04 18:26:28 -07:00 committed by GitHub
parent 7506d017eb
commit 4ab3dc7e2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,6 +17,12 @@ build:
cd {{prefix}}/bin
sed -i.bak 's|{{prefix}}|"$(cd "$(dirname "$0")/.." \&\& pwd)"|' xml2-config
rm *.bak
# a lot of stuff is surprised at the libxml2 prefix
cd {{prefix}}/include
mv libxml2/libxml .
rmdir libxml2
ln -s . libxml2
env:
ARGS:
- --prefix={{prefix}}