1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/development/python-modules/rhpl/builder.sh

14 lines
472 B
Bash
Raw Normal View History

source $stdenv/setup
rpm2cpio $src | cpio -idv
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" \
-e "s@\$(DESTDIR)/usr/share/locale@$out/share/locale@" po/Makefile
make PREFIX=$out
make PREFIX=$out install