recipes

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

build (373B)


      1 #!/bin/sh -ex
      2 
      3 rm -f src/hash/hash_generic.c
      4 rm -f src/hash/hash_win32.c
      5 rm -fR src/win32
      6 
      7 (cd src
      8 	for x in *.c */*.c */*/*.c ../deps/http-parser/*.c; do
      9 		cc -c -fPIC -I. -I../include -I../deps/http-parser "${x}"
     10 	done
     11 
     12 	cc -shared -o libgit2.so *.o
     13 	ar -rcs libgit2.a *.o
     14 )
     15 
     16 mkdir -p "$PREFIX/lib"
     17 cp src/libgit2.so src/libgit2.a "${PREFIX}/lib"
     18 cp -R include "$PREFIX"