Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Moved to autotools-libtools
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmarco committed May 30, 2016
1 parent be71e3e commit 5b6fae2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
6 changes: 3 additions & 3 deletions build/pkgs/libhomfly/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tarball=libhomfly-VERSION.tar.gz
sha1=d1461f3f53caa4489617d10b1114ff322a1e9b83
md5=5ca3136316ffac6953c35c545248fa62
cksum=1179142519
sha1=38b075ca85df9a032b55591729094358299f7253
md5=886f11d719d32ac9f839647f0deb6d57
cksum=251271542
4 changes: 4 additions & 0 deletions build/pkgs/libhomfly/spkg-check
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

cd src
$MAKE check
18 changes: 11 additions & 7 deletions build/pkgs/libhomfly/spkg-install
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@

cd src

./configure --prefix="$SAGE_LOCAL" --libdir="$SAGE_LOCAL/lib"
if [ $? -ne 0 ]; then
echo >&2 "Error configuring libhomfly."
exit 1
fi

$MAKE
if [ $? -ne 0 ]; then
echo >&2 "Error building PACKAGE_NAME."
exit 1
echo >&2 "Error building libhomfly."
exit 1
fi

cp homfly.h $SAGE_LOCAL/include/
cp libhomfly.so $SAGE_LOCAL/lib/
$MAKE -j1 install
if [ $? -ne 0 ]; then
echo >&2 "Error installing PACKAGE_NAME."
exit 1
fi
echo >&2 "Error installing libhomfly."
exit 1
fi

0 comments on commit 5b6fae2

Please sign in to comment.