From d42fb2cee9895e796898313377cd2bfbefa0398e Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Sat, 8 Oct 2022 16:36:48 +0100 Subject: [PATCH] pyinotify: Use SRC_FILENAMES. Remove slack-desc config files warning. --- source/pyinotify/pyinotify.SlackBuild | 9 +++------ source/pyinotify/pyinotify.buildconf | 2 +- source/pyinotify/slack-desc | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/source/pyinotify/pyinotify.SlackBuild b/source/pyinotify/pyinotify.SlackBuild index 32d75d2..59adca3 100755 --- a/source/pyinotify/pyinotify.SlackBuild +++ b/source/pyinotify/pyinotify.SlackBuild @@ -1,5 +1,5 @@ #!/bin/bash -# Version: 0.6.9 +# Version: 0.6.10 # Copyright (c) 2005-2022: # Darren 'Tadgy' Austin # 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. case "$I" in 0) - # Patch before build. - # zcat $SRC_DIR/patches/EDITME.diff.gz | patch -p0 || die "Source patching failed for: EDITME.diff.gz" - # 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. 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" diff --git a/source/pyinotify/pyinotify.buildconf b/source/pyinotify/pyinotify.buildconf index df4f053..b5744b2 100644 --- a/source/pyinotify/pyinotify.buildconf +++ b/source/pyinotify/pyinotify.buildconf @@ -12,5 +12,5 @@ SRC_FILENAMES=("$PKG_NAME-$PKG_VERSION.tar.gz") SRC_DIRNAMES=("$PKG_NAME-$PKG_VERSION") # Build configuration. -BUILD_REQUIRES=(python3) +BUILD_REQUIRES=("python3") BUILD_CONFLICTS=("$PKG_NAME") diff --git a/source/pyinotify/slack-desc b/source/pyinotify/slack-desc index e9c77f4..3aacfc5 100644 --- a/source/pyinotify/slack-desc +++ b/source/pyinotify/slack-desc @@ -14,6 +14,6 @@ %PKG_NAME%: implementation offering a generic and abstract way to manipulate %PKG_NAME%: inotify functionalities. %PKG_NAME%: -%PKG_NAME%: Warning: This package does not contain any configuration files. +%PKG_NAME%: %PKG_NAME%: %PKG_NAME%: Packaged by: Darren 'Tadgy' Austin. Built for: %DIST_OS_ID%-%DIST_OS_VERSION_ID%.