#!/bin/sh VERSION=1.0.15 ARCH=x86_64 BUILD=1 DISTRO=${DISTRO:-slamd64} CWD=`pwd` PKG=/tmp/package-aaa_elflibs32 TMP=/tmp/alsa-lib32-tmp rm -rf $TMP mkdir $TMP cd $TMP # Extract the stuff we want tar --wildcards -xvf $CWD/../s/alsa-lib32-$VERSION-${ARCH}_${DISTRO}-$BUILD.tgz usr/lib/libasound.so.* # Recreate symlinks cd usr/lib ldconfig -n . # Copy to package directory mkdir -p $PKG/usr/lib cp -a * $PKG/usr/lib