|
|
@ -1,6 +1,6 @@ |
|
|
|
#!/bin/bash |
|
|
|
# Build script for Slackware |
|
|
|
# Copyright (C) 2019 Damien Goutte-Gattat |
|
|
|
# Copyright (C) 2019,2020 Damien Goutte-Gattat |
|
|
|
# |
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
# is permitted provided that the following conditions are met: |
|
|
@ -27,7 +27,7 @@ |
|
|
|
|
|
|
|
# Source package infos |
|
|
|
NAMESRC=${NAMESRC:-tpm2-tss} |
|
|
|
VERSION=${VERSION:-2.3.2} |
|
|
|
VERSION=${VERSION:-2.4.1} |
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
WGET=${WGET:-https://github.com/tpm2-software/tpm2-tss/releases/download/$VERSION/$ARCHIVE} |
|
|
|
|
|
|
@ -91,7 +91,9 @@ CXXFLAGS=$CPUOPT \ |
|
|
|
--libdir=/usr/lib$LIBDIRSUFFIX \ |
|
|
|
--sysconfdir=/etc \ |
|
|
|
--mandir=/usr/man \ |
|
|
|
--localstatedir=/var \ |
|
|
|
--with-udevrulesdir=/lib/udev/rules.d \ |
|
|
|
--with-udevrulesprefix=50- \ |
|
|
|
--disable-static \ |
|
|
|
--disable-weakcrypto \ |
|
|
|
--disable-dependency-tracking \ |
|
|
@ -106,6 +108,9 @@ for manpage in $(find $PKG/usr/man -type l); do |
|
|
|
rm -f $manpage |
|
|
|
done |
|
|
|
|
|
|
|
# We don't need those on Slackware |
|
|
|
rm -rf $PKG/etc/{sysusers,tmpfiles}.d |
|
|
|
|
|
|
|
# Install the documentation |
|
|
|
mkdir -p $PKG/usr/doc/$NAME |
|
|
|
install -m 644 AUTHORS CHANGELOG.md CONTRIBUTING.md LICENSE MAINTAINERS \ |
|
|
|