diff options
Diffstat (limited to 'academic/treerecs/treerecs.SlackBuild')
-rw-r--r-- | academic/treerecs/treerecs.SlackBuild | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/academic/treerecs/treerecs.SlackBuild b/academic/treerecs/treerecs.SlackBuild index 4bff8e9c09edd..6fa09cdb0b2e4 100644 --- a/academic/treerecs/treerecs.SlackBuild +++ b/academic/treerecs/treerecs.SlackBuild @@ -22,17 +22,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Thanks to David Parsons for clarifications about the scipt and suggestions! + PRGNAM=treerecs -VERSION=${VERSION:-1.1_gitd1c1bfaf} +VERSION=${VERSION:-1.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -COMMIT=d1c1bfaf3e6f072436661c80346dee9ae54b3310 - -# Depending on whether you clicked or used wget to download, the tarball -# name is different. Bleh... -WGETNAME=archive -CLICKNAME=Treerecs-master +SRCNAM=Treerecs if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -66,15 +63,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $CLICKNAME-$COMMIT - -if [ -e $CWD/$WGETNAME.tar.gz ]; then - tar xvf $CWD/$WGETNAME.tar.gz -else - tar xvf $CWD/$CLICKNAME-$COMMIT.tar.gz -fi - -cd $CLICKNAME-$COMMIT +rm -rf $SRCNAM-v${VERSION} +tar xvf $CWD/$SRCNAM-v${VERSION}.tar.gz +cd $SRCNAM-v${VERSION} chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -87,12 +78,12 @@ cd build cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_BUILD_TYPE=MinSizeRel .. + -DCMAKE_BUILD_TYPE=Release .. make cd .. # This is the program executable. Using "make install DESTDIR=$PKG" -# works, but is simply puts the treerecs in /usr/local/bin and that's it +# works, but it simply puts treerecs in /usr/local/bin and that's it install -D -m755 build/bin/$PRGNAM $PKG/usr/bin/$PRGNAM # Include the extra binaries |