diff options
Diffstat (limited to 'libraries/libsigrok')
-rw-r--r-- | libraries/libsigrok/libsigrok.SlackBuild | 26 | ||||
-rw-r--r-- | libraries/libsigrok/libsigrok.info | 6 |
2 files changed, 23 insertions, 9 deletions
diff --git a/libraries/libsigrok/libsigrok.SlackBuild b/libraries/libsigrok/libsigrok.SlackBuild index 18f82d2f93..ce391c0862 100644 --- a/libraries/libsigrok/libsigrok.SlackBuild +++ b/libraries/libsigrok/libsigrok.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for libsigrok @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=libsigrok -VERSION=${VERSION:-0.5.2} -BUILD=${BUILD:-1} +VERSION=${VERSION:-20220224_6dc55e4} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -60,7 +70,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -69,6 +79,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +./autogen.sh + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -89,9 +101,11 @@ cp -a contrib AUTHORS ChangeLog COPYING Doxyfile HACKING INSTALL NEWS README REA $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +rm -f $PKG/usr/lib*/*.la + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/libraries/libsigrok/libsigrok.info b/libraries/libsigrok/libsigrok.info index 49fb295548..59901e03d7 100644 --- a/libraries/libsigrok/libsigrok.info +++ b/libraries/libsigrok/libsigrok.info @@ -1,8 +1,8 @@ PRGNAM="libsigrok" -VERSION="0.5.2" +VERSION="20220224_6dc55e4" HOMEPAGE="https://sigrok.org/wiki/Libsigrok" -DOWNLOAD="https://sigrok.org/download/source/libsigrok/libsigrok-0.5.2.tar.gz" -MD5SUM="e258d471b6d5eaa58daf927a0dc3ba67" +DOWNLOAD="http://ponce.cc/slackware/sources/repo/libsigrok-20220224_6dc55e4.tar.xz" +MD5SUM="ce188a5e1e0e33c197f565e7496a6093" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |