nixpkgs/pkgs/development/python-modules/rhpl/builder.sh

14 lines
455 B
Bash
Raw Normal View History

source $stdenv/setup
2014-10-20 00:16:59 +01:00
rpmextract $src
tar xfvj rhpl-*.tar.bz2
rm rhpl-*.tar.bz2
cd rhpl-*
incl=$(echo $python/include/python2.*)
sed -i -e "s@/usr/include/\$(PYTHON)@$incl@" \
-e "s@PYTHONLIBDIR = /usr/\$(LIBDIR)/\$(PYTHON)/site-packages@PYTHONLIBDIR = $(toPythonPath $out)@" Makefile.inc
sed -i -e "s@/usr/bin/install@install@g" \
2020-08-25 03:07:09 +01:00
-e "s@\$(DESTDIR)/usr/share/locale@$out/share/locale@" po/Makefile
make PREFIX=$out
make PREFIX=$out install