Pkgfile 807 B

1234567891011121314151617181920212223242526272829303132
  1. # Description: XML library compat-version 2.10
  2. # URL: http://xmlsoft.org/
  3. # Maintainer: Daniel Azevedo, daniazevedo77 at posteo dot net
  4. # Depends on: zlib xz
  5. # originally found at Petar Petrov's Github repo crux-ports
  6. name=libxml210
  7. version=2.10.4
  8. release=3
  9. source=(https://download.gnome.org/sources/libxml2/${version:0:4}/libxml2-$version.tar.xz)
  10. build() {
  11. cd libxml2-$version
  12. ./configure \
  13. --prefix=/usr \
  14. --bindir=/usr/lib/$name/bin \
  15. --libdir=/usr/lib/$name \
  16. --includedir=/usr/include/$name \
  17. --sysconfdir=/usr/etc \
  18. --without-python
  19. make
  20. make DESTDIR=$PKG install
  21. cd $PKG/usr/include/libxml210/libxml2/libxml/
  22. for i in * ; do
  23. sed -i 's:#include <libxml/:#include <libxml210/libxml2/libxml/:g' $i
  24. done
  25. #rm -rf $PKG/usr/bin
  26. rm -r $PKG/usr/share/{aclocal,doc,gtk-doc,man}
  27. }