1234567891011121314151617181920212223242526272829303132 |
- # Description: XML library compat-version 2.10
- # URL: http://xmlsoft.org/
- # Maintainer: Daniel Azevedo, daniazevedo77 at posteo dot net
- # Depends on: zlib xz
- # originally found at Petar Petrov's Github repo crux-ports
- name=libxml210
- version=2.10.4
- release=3
- source=(https://download.gnome.org/sources/libxml2/${version:0:4}/libxml2-$version.tar.xz)
- build() {
- cd libxml2-$version
- ./configure \
- --prefix=/usr \
- --bindir=/usr/lib/$name/bin \
- --libdir=/usr/lib/$name \
- --includedir=/usr/include/$name \
- --sysconfdir=/usr/etc \
- --without-python
- make
- make DESTDIR=$PKG install
-
- cd $PKG/usr/include/libxml210/libxml2/libxml/
- for i in * ; do
- sed -i 's:#include <libxml/:#include <libxml210/libxml2/libxml/:g' $i
- done
-
- #rm -rf $PKG/usr/bin
- rm -r $PKG/usr/share/{aclocal,doc,gtk-doc,man}
- }
|