|
|
@ -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: |
|
|
@ -29,7 +29,7 @@ |
|
|
|
|
|
|
|
# Source package infos |
|
|
|
NAMESRC=${NAMESRC:-tpm2-tools} |
|
|
|
VERSION=${VERSION:-4.1} |
|
|
|
VERSION=${VERSION:-4.2} |
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
WGET=${WGET:-https://github.com/tpm2-software/tpm2-tools/releases/download/$VERSION/$ARCHIVE} |
|
|
|
|
|
|
@ -95,12 +95,12 @@ make -j $JOBS |
|
|
|
make install-strip DESTDIR=$PKG |
|
|
|
|
|
|
|
# Compress man pages |
|
|
|
find $PKG/usr/man -type f -exec gzip -9 {} \; |
|
|
|
find $PKG/usr/man -type f -exec gzip -9 {} \; |
|
|
|
|
|
|
|
# Install the documentation |
|
|
|
mkdir -p $PKG/usr/doc/$NAME |
|
|
|
install -m 644 AUTHORS.md CHANGELOG.md CONTRIBUTING.md LICENSE \ |
|
|
|
MAINTAINERS.md README.md $PKG/usr/doc/$NAME |
|
|
|
install -m 644 doc/AUTHORS.md doc/CHANGELOG.md doc/CONTRIBUTING.md \ |
|
|
|
doc/LICENSE doc/MAINTAINERS.md README.md $PKG/usr/doc/$NAME |
|
|
|
|
|
|
|
# Copy slack-desc file |
|
|
|
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc |
|
|
|