### generated by gen-xlibs-pkg.sh from BLFS SVN 2018-5-25 on 2018-05-25
PKGVER=1.2.0
PKGBUILD=1
PKGARCH=i686

TARBALL=libXres-1.2.0.tar.bz2
MD5SUM=5d6d443d1abc8e1f6fc1c57fb27729bb
SRC_URL=http://xorg.freedesktop.org/releases/individual/lib/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC='libXres: libXres 1.2.0 (X11 system library)  
libXres:  
libXres: X11 X resource extension library.
libXres: 
libXres: 
libXres: 
libXres: 
libXres: 
libXres: 
libXres: 
libXres:
'

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default && case $TARBALL in
		libFS-*)
			cd tmp/libFS* &&
			sed -e '/#include <X11/ i\#include <X11\/Xtrans\/Xtransint.h>' 				-e 's/_FSTransReadv(svr->trans_conn/readv(svr->trans_conn->fd/' 				-i src/FSlibInt.c
			;;			
	esac
}

### package - only collect the libraries for 32bit libs
pkg_package() {
	[ "only_libs" ] &&
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share etc
	return 0
}

### build
pkg_build() {
	case $TARBALL in
		libXfont-*) CONFFLAGS="$XORG_CONFIG --disable-devel-docs" ;;
		libXt-*) CONFFLAGS="$XORG_CONFIG --with-appdefaultdir=/etc/X11/app-defaults" ;;
		*) CONFFLAGS="$XORG_CONFIG" ;;
	esac
	pkg_build_autoconf && pkg_build_slackdesc &&
	case $TARBALL in
		xtrans-*) 
			mkdir -p /usr/lib/pkgconfig && 
			mv -v /usr/share/pkgconfig/xtrans.pc /usr/lib/pkgconfig &&
			rm -rf /usr/share/pkgconfig
			;;
	esac
}
