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