Skip to content

Instantly share code, notes, and snippets.

@jimjh
Last active December 29, 2015 19:41
Show Gist options
  • Save jimjh/b9c9415a64595f4e4513 to your computer and use it in GitHub Desktop.
Save jimjh/b9c9415a64595f4e4513 to your computer and use it in GitHub Desktop.
libgit2-fpm.sh
#!/bin/bash
# cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr --build .
# make
# make install DESTDIR=~/tmpinstalldir
fpm -f \
-s dir \
-t deb \
-n libgit2 \
-v 0.23.4ppa1 \
-C ~/tmpinstalldir \
-p libgit2_VERSION_ARCH.deb \
-d "libc6 >= 2.15" \
-d "libssl1.0.0 >= 1.0.0" \
-d "zlib1g >= 1:1.1.4" \
--description "libgit2 is a portable, pure C implementation of the Git distributed version control system core methods provided as a re-entrant link-able library with a solid API." \
--url http://libgit2.github.com/ \
--category universe/libs \
--license "GPLv2 with Linking Exception" \
--maintainer "James Lim <[email protected]>" \
--replaces libgit2-0 \
--vendor "James Lim" \
usr/lib usr/include
@jimjh
Copy link
Author

jimjh commented Dec 29, 2015

It needs to be in /usr/lib instead of /usr/local/lib, so that pygit2 can find it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment