commit e14089631fa2cbfd7b074b6f7dac8bc6289744f8
parent c039a6e8d4d2ef6100c67fef54856d8bcd8a7d4a
Author: René Wagner <rwa@clttr.info>
Date: Mon, 1 May 2023 09:17:25 +0200
add Makefile, fix PKGBUILD
Diffstat:
5 files changed, 46 insertions(+), 26 deletions(-)
diff --git a/Makefile b/Makefile
@@ -0,0 +1,25 @@
+VERSION=1.1
+PREFIX?=/usr/local
+BINDIR?=$(PREFIX)/bin
+MANDIR?=$(PREFIX)/share/man
+DOCDIR?=$(PREFIX)/share/doc
+COMPLDIR?=$(PREFIX)/share/bash-completion
+.DEFAULT_GOAL=all
+
+sposc:
+
+spmvsc:
+
+all: sposc spmvsc
+
+install: all
+ mkdir -p $(DESTDIR)/$(BINDIR)
+ install -m755 sposc $(DESTDIR)/$(BINDIR)/sposc
+ install -m755 spmvsc $(DESTDIR)/$(BINDIR)/spmvsc
+
+uninstall:
+ rm -f $(DESTDIR)/$(BINDIR)/sposc
+ rm -f $(DESTDIR)/$(BINDIR)/spmvsc
+
+check: all
+ @find test -perm -111 -exec '{}' \;
diff --git a/PKGBUILD b/PKGBUILD
@@ -1,25 +1,22 @@
-# Maintainer: René Wagner < rwagner at rw-net dot de >
+# Maintainer: René Wagner < rwa at clttr dot info >
-pkgname=photo-helpers
+pkgname=silkypix-helpers
pkgver=20221106
pkgrel=1
-pkgdesc='simple photo workflow helper scripts'
+pkgdesc='simple helper scripts for managing sidecar files created by SilkyPix Developer Studio (Pro)'
arch=('x86_64' 'aarch64' 'i686')
license=('BSD')
-url='https://src.clttr.info/rwa/photo-helpers'
-provides=('photo-helpers')
+depends=('perl-file-find-rule')
+url='https://git.sr.ht/~rwa/silkypix-helpers'
+provides=('silkypix-helpers')
options=(!strip)
-source=('afm' 'jd' 'sposc' 'spmvsc')
-sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP')
+source=('sposc' 'spmvsc' 'Makefile')
+sha256sums=('SKIP' 'SKIP' 'SKIP')
pkgver() {
printf "%s" "$(git describe --abbrev=0)"
}
package() {
- mkdir -p "${pkgdir}/usr/bin"
- install -Dm755 afm "${pkgdir}/usr/bin/"
- install -Dm755 jd "${pkgdir}/usr/bin/"
- install -Dm755 sposc "${pkgdir}/usr/bin/"
- install -Dm755 spmvsc "${pkgdir}/usr/bin/"
+ make install DESTDIR="${pkgdir}" PREFIX="/usr"
}
diff --git a/README.md b/README.md
@@ -1,12 +1,11 @@
# About
This rather small scripts written in [Perl](https://perl.org) provide useful function for managing (raw and output) files for photographers.
-## usage
-Simply clone the repo or manually download the scripts from https://git.sr.ht/~rwa/silkypix-helpers
+## usage
+* Clone the repo or manually download the scripts from https://git.sr.ht/~rwa/silkypix-helpers
+* run `sudo make install`
-To run the script, open a shell and invoke `perl <script>`, on most systems it should be sufficient to just invoke `script` (after you granted execute-permissions to the script).
-
-#### prerequisites for running the pure scripts
+### prerequisites for running the pure scripts
- Perl 5.30 (or newer)
@@ -14,7 +13,6 @@ Additionally the following perl modules need to be installed:
- Cwd
- File::Basename
-- File::Copy
- File::HomeDir
- File::Spec::Functions
- File::Find::Rule
diff --git a/spmvsc b/spmvsc
@@ -1,6 +1,6 @@
#!/usr/bin/perl
-# Copyright(c) René Wagner 2019-2020
-# https://src.clttr.info/rwa/photo-helpers
+# Copyright(c) René Wagner 2019-2023
+# https://git.sr.ht/~rwa/silkypix-helpers
# published under BSD 3-Clause License
use Modern::Perl '2019';
@@ -100,8 +100,8 @@ sub main::VERSION_MESSAGE()
{
say $PROGRAM . ' - version ' . $VERSION;
say 'published under BSD 3 - Clause License';
- say 'Copyright(c) 2019-2020 René Wagner';
- say 'https://git.sr.ht/~rwa/photo-helpers';
+ say 'Copyright(c) 2019-2023 René Wagner';
+ say 'https://git.sr.ht/~rwa/silkypix-helpers';
}
sub main::HELP_MESSAGE
diff --git a/sposc b/sposc
@@ -1,6 +1,6 @@
#!/usr/bin/perl
-# Copyright(c) René Wagner 2019-2020
-# https://src.clttr.info/rwa/photo-helpers
+# Copyright(c) René Wagner 2019-2023
+# https://git.sr.ht/~rwa/silkypix-helpers
# published under BSD 3-Clause License
use Modern::Perl '2019';
@@ -86,8 +86,8 @@ sub main::VERSION_MESSAGE()
{
say $PROGRAM . ' - version ' . $VERSION;
say 'published under BSD 3 - Clause License';
- say 'Copyright(c) 2019-2020 René Wagner';
- say 'https://git.sr.ht/~rwa/photo-helpers';
+ say 'Copyright(c) 2019-2023 René Wagner';
+ say 'https://git.sr.ht/~rwa/silky-helpers';
}
sub main::HELP_MESSAGE