#!/bin/sh

. config/options $1

MODULE_VERSION=`pkg-config pango --variable=pango_module_version`

mkdir -p $INSTALL/usr/lib
  cp -P $PKG_BUILD/$1/.libs/libpango*.so* $INSTALL/usr/lib
    rm -rf $INSTALL/usr/lib/libpango*.so*T

mkdir -p $INSTALL/usr/lib/pango/$MODULE_VERSION/modules
  cp -P $PKG_BUILD/modules/*/.libs/*.so \
    $INSTALL/usr/lib/pango/$MODULE_VERSION/modules

mkdir -p $INSTALL/usr/bin
  cp $PKG_BUILD/$1/.libs/pango-querymodules $INSTALL/usr/bin

mkdir -p $INSTALL/etc/pango
  cp $PKG_BUILD/$1/pangox.aliases $INSTALL/etc/pango
  cp $PKG_DIR/config/pango.modules $INSTALL/etc/pango
