Pkgfile 804 B

12345678910111213141516171819202122232425262728
  1. # Description: GNOME Structured File Library
  2. # URL: https://download.gnome.org/sources/libgsf/
  3. # Maintainer: Daniel Azevedo, daniazevedo77 at posteo dot net
  4. # Depends on: gdk-pixbuf libxml210
  5. # originally found at Petar Petrov's Github repo crux-ports
  6. name=libgsf
  7. version=1.14.51
  8. release=1
  9. source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz)
  10. build(){
  11. cd $name-$version
  12. export PKG_CONFIG_PATH="/usr/lib/libxml210/pkgconfig:$PKG_CONFIG_PATH"
  13. sed -i -e 's|USE_NLS=yes|USE_NLS=no|;s|ENABLE_NLS 1|ENABLE_NLS 0|' configure
  14. ./configure --prefix=/usr \
  15. --disable-static
  16. sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  17. CPPFLAGS="-I/usr/include/libxml210/libxml" make
  18. make DESTDIR=$PKG install
  19. rm -rf $PKG/usr/share/gtk-doc
  20. rm -f $PKG/{,usr/}lib/*.la
  21. }