Ну вот так слакварщики собирают:#!/bin/sh
APP=udns
VERSION=0.0.9
BUILD=${BUILD:-1}
ARCH=${ARCH:-i686}
CWD=$(pwd)
if [ "$TMP" = "" ]; then
TMP=/tmp
fi
if [ "$ARCH" = "i386" ]; then
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
elif [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=nocona"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi
PKG=$TMP/$APP-$VERSION-build
# Delete the leftover directories if they exist (due to a previous build)
# and (re)create the packaging directory
rm -rf $PKG $TMP/$APP-$VERSION
mkdir -p $TMP $PKG || exit 1
cd $TMP || exit 1
tar zxvf "$CWD"/$APP-$VERSION.tar.gz || exit 1
cd $APP-$VERSION || exit 1
# Change ownership and permissions if necessary
# This may not be needed in some source tarballs, but it never hurts
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
./configure
make shared || exit 1
mkdir $PKG/usr
mkdir $PKG/usr/man
mkdir $PKG/usr/man/man1
mkdir $PKG/usr/man/man3
mkdir $PKG/usr/include
mkdir $PKG/usr/lib
mkdir $PKG/usr/bin
cp $TMP/$APP-$VERSION/udns.h $PKG/usr/include/udns.h
cp $TMP/$APP-$VERSION/libudns.so.0 $PKG/usr/lib/
cp $TMP/$APP-$VERSION/ex-rdns_s $PKG/usr/bin/ex-rdns
cp $TMP/$APP-$VERSION/dnsget_s $PKG/usr/bin/dnsget
cp $TMP/$APP-$VERSION/rblcheck_s $PKG/usr/bin/rblcheck
gzip $TMP/$APP-$VERSION/udns.3
gzip $TMP/$APP-$VERSION/dnsget.1
gzip $TMP/$APP-$VERSION/rblcheck.1
cp $TMP/$APP-$VERSION/udns.3.gz $PKG/usr/man/man3/udns.3.gz
cp $TMP/$APP-$VERSION/dnsget.1.gz $PKG/usr/man/man1/dnsget.1.gz
cp $TMP/$APP-$VERSION/rblcheck.1.gz $PKG/usr/man/man1/rblcheck.1.gz
cd $PKG/usr/lib
ln -s libudns.so.0 libudns.so
mkdir $CWD/packages
cd $PKG
/sbin/makepkg -l y -c n $CWD/packages/$APP-$VERSION-$ARCH-$BUILD.tgz
rm -r $PKG $TMP/$APP-$VERSION