|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2010,2011,2012,2013,2016 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2010-2013,2016,2019 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -26,7 +26,7 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-lv2} |
|
|
|
|
VERSION=${VERSION:-1.12.0} |
|
|
|
|
VERSION=${VERSION:-1.16.0} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2} |
|
|
|
|
WGET=${WGET:-http://lv2plug.in/spec/$ARCHIVE} |
|
|
|
|
|
|
|
|
@ -34,6 +34,7 @@ WGET=${WGET:-http://lv2plug.in/spec/$ARCHIVE}
|
|
|
|
|
NAMEPKG=${NAMEPKG:-lv2} |
|
|
|
|
BUILD=${BUILD:-1GGD} |
|
|
|
|
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')} |
|
|
|
|
JOBS=${JOBS:-1} |
|
|
|
|
EXT=${EXT:-txz} |
|
|
|
|
|
|
|
|
|
# Directories |
|
|
|
@ -67,7 +68,7 @@ if [ ! -r $ARCHIVE ]; then
|
|
|
|
|
wget -c -O $ARCHIVE.part "$WGET" |
|
|
|
|
mv $ARCHIVE.part $ARCHIVE |
|
|
|
|
fi |
|
|
|
|
sha1sum -c $ARCHIVE.sha1 |
|
|
|
|
sha256sum -c $ARCHIVE.sha256 |
|
|
|
|
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1) |
|
|
|
|
|
|
|
|
|
# Compile |
|
|
|
@ -79,7 +80,7 @@ cd $NAME
|
|
|
|
|
--prefix=/usr \ |
|
|
|
|
--libdir=/usr/lib$LIBDIRSUFFIX \ |
|
|
|
|
--lv2dir=/usr/lib$LIBDIRSUFFIX/lv2 |
|
|
|
|
./waf |
|
|
|
|
./waf -j $JOBS |
|
|
|
|
./waf install --destdir=$PKG |
|
|
|
|
|
|
|
|
|
# Install the documentation |
|
|
|
|