nixpkgs-suyu/pkgs/sdf2/sdf2-build.sh
Eelco Dolstra eb545b5142 * Amazingly, sdf2 is still dependent on the non-standard `getopt' tool. So
getopt has been added.

  As part of the build of sdf2 we patch sdf2table to store the full path of
  getopt.  This is so that packages that use sdf2 do not have to declare
  getopt as an input.

svn path=/nixpkgs/trunk/; revision=347
2003-08-25 13:24:48 +00:00

16 lines
501 B
Bash
Executable file

#! /bin/sh
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd sdf2-* || exit 1
./configure --prefix=$out --with-aterm=$aterm || exit 1
make || exit 1
make install || exit 1
# Replace the call to getopt in sdf2table with an absolute path (so that the
# users of sdf2table don't have to explicitly declare getopt as an input).
sdf2table=$out/bin/sdf2table
sed s^getopt^$getopt/bin/getopt^ < $sdf2table > $sdf2table.tmp || exit 1
mv $sdf2table.tmp $sdf2table || exit 1
chmod +x $sdf2table || exit 1