recipes

packages recipes for the <noname> package manager
Log | Files | Refs

build (463B)


      1 #!/bin/sh -ex
      2 
      3 find . -type l \( -name '*.so.*' -o -name '*.so' \) -exec rm {} +
      4 
      5 find . -name '*.[ch]' -exec sh -c '
      6 	sed "s/|| defined(__FreeBSD__)\$/& || defined(__OpenBSD__)/" "$0" >"$$"
      7 	mv "$$" "$0"
      8 ' {} \;
      9 
     10 find . -name 'Makefile' -exec sh -c '
     11 	sed "
     12 		s/cp -af /cp -f /
     13 		s/cp -a /cp /
     14 		s/cp -L -r/cp -LR/
     15 	" "$0" >"$$"
     16 	mv "$$" "$0"
     17 ' {} \;
     18 
     19 make
     20 mkdir -p "$PREFIX/include/X11" "$PREFIX/lib" "$PREFIX/share/X11/XKeysymDB"
     21 make PREFIX="$PREFIX" install