pyinotify: Use SRC_FILENAMES. Remove slack-desc config files warning.

This commit is contained in:
Darren 'Tadgy' Austin 2022-10-08 16:36:48 +01:00
commit d42fb2cee9
3 changed files with 5 additions and 8 deletions

View file

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
# Version: 0.6.9 # Version: 0.6.10
# Copyright (c) 2005-2022: # Copyright (c) 2005-2022:
# Darren 'Tadgy' Austin <darren (at) afterdark.org.uk> # Darren 'Tadgy' Austin <darren (at) afterdark.org.uk>
# Licensed under the terms of the GNU General Public License version 3. # Licensed under the terms of the GNU General Public License version 3.
@ -212,15 +212,12 @@ for ((I = 0; I < ${#SRC_DIRNAMES[@]}; I++)); do
# Build each source in the array. # Build each source in the array.
case "$I" in case "$I" in
0) 0)
# Patch before build.
# zcat $SRC_DIR/patches/EDITME.diff.gz | patch -p0 || die "Source patching failed for: EDITME.diff.gz"
# Build and install. # Build and install.
python3 setup.py install --prefix "$BUILD_PREFIX" --compile --root "$BUILD_ROOT" || die "Build failed: ${SRC_DIRNAMES[I]%%.*}" python3 setup.py install --prefix "$BUILD_PREFIX" --compile --root "$BUILD_ROOT" || die "Build failed: ${SRC_FILENAMES[I]%-*}"
# Package documentation. # Package documentation.
mkdir -p -m 755 "$BUILD_ROOT/$BUILD_PREFIX/doc/${SRC_FILENAMES[I]%.@(tar|tar.?z|t?z|zip)}" && cp --parents ACKS COPYING README.md \ mkdir -p -m 755 "$BUILD_ROOT/$BUILD_PREFIX/doc/${SRC_FILENAMES[I]%.@(tar|tar.?z|t?z|zip)}" && cp --parents ACKS COPYING README.md \
"$BUILD_ROOT/$BUILD_PREFIX/doc/${SRC_FILENAMES[I]%.@(tar|tar.?z|t?z|zip)}" || die "Documentation copy failed: ${SRC_DIRNAMES[I]}" "$BUILD_ROOT/$BUILD_PREFIX/doc/${SRC_FILENAMES[I]%.@(tar|tar.?z|t?z|zip)}" || die "Documentation copy failed: ${SRC_FILENAMES[I]%-*}"
;; ;;
*) *)
die "Un-handled source file - no build configuration" die "Un-handled source file - no build configuration"

View file

@ -12,5 +12,5 @@ SRC_FILENAMES=("$PKG_NAME-$PKG_VERSION.tar.gz")
SRC_DIRNAMES=("$PKG_NAME-$PKG_VERSION") SRC_DIRNAMES=("$PKG_NAME-$PKG_VERSION")
# Build configuration. # Build configuration.
BUILD_REQUIRES=(python3) BUILD_REQUIRES=("python3")
BUILD_CONFLICTS=("$PKG_NAME") BUILD_CONFLICTS=("$PKG_NAME")

View file

@ -14,6 +14,6 @@
%PKG_NAME%: implementation offering a generic and abstract way to manipulate %PKG_NAME%: implementation offering a generic and abstract way to manipulate
%PKG_NAME%: inotify functionalities. %PKG_NAME%: inotify functionalities.
%PKG_NAME%: %PKG_NAME%:
%PKG_NAME%: Warning: This package does not contain any configuration files. %PKG_NAME%:
%PKG_NAME%: %PKG_NAME%:
%PKG_NAME%: Packaged by: Darren 'Tadgy' Austin. Built for: %DIST_OS_ID%-%DIST_OS_VERSION_ID%. %PKG_NAME%: Packaged by: Darren 'Tadgy' Austin. Built for: %DIST_OS_ID%-%DIST_OS_VERSION_ID%.