commit 83298c0db33cbc41cd79f80ce8e518dc1ccc82df
parent a8cfae0d5f22a7f69d78e2ff57340fb47ca9fd1f
Author: René Wagner <rwa@clttr.info>
Date: Tue, 22 Jun 2021 21:32:30 +0200
update dependencies and package build
Diffstat:
3 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD
@@ -1,19 +1,20 @@
# Maintainer: René Wagner < rwagner at rw-net dot de >
pkgname=photo-stats
-pkgver=20200718
+pkgver=1.0_10_ga8cfae0
pkgrel=1
pkgdesc='photo stats for your terminal'
-arch=('x86_64')
+arch=('x86_64' 'i686' 'aarch64')
+depends=('perl-image-exiftool' 'sqlite3' 'perl-text-simpletable-autowidth' 'perl-file-homedir' 'perl-dbd-sqlite')
license=('BSD')
-url='https://src.clltr.info/rwa/photo-stats'
-provides=('photo-stats')
+url='https://src.clttr.info/rwa/photo-stats'
+provides=('photo-stats')
options=(!strip)
source=('phosta')
sha256sums=('SKIP')
pkgver() {
- printf "%s" "$(git describe --abbrev=0)"
+ printf "%s" "$(git describe | sed -r 's/\-/_/g' )"
}
package() {
diff --git a/README.md b/README.md
@@ -103,3 +103,5 @@ Additionally the following perl modules need to be installed:
- Perl::DBD::SQLite
- Perl::DBI
- Text::SimpleTable::AutoWidth
+- Term::AnsiColor
+- Scalar:Util
diff --git a/phosta b/phosta
@@ -428,9 +428,10 @@ sub main::HELP_MESSAGE
say '';
say 'usage: phosta [options]';
say '';
+ say 'Options with upper-case letters are automatically saved in the user config and can be omitted if no change is required.';
+ say '';
say 'generic options:';
say ' -D <file> : path and name of the db file to use, defaults to <workingdir>/photo_stats.db';
- say ' This option is automatically saved in the user config and be can omitted when using same db again.';
say ' -c : clear the database';
say ' -v : be verbose - print some debug output';
say ' --help : show this help';
@@ -439,7 +440,6 @@ sub main::HELP_MESSAGE
say ' -p <folder> : populate database with the EXIF data of the media files in the specified folder';
say ' -E <ext> : list of comma separated extensions used for scanning image files, defaults to jpg,jpeg';
say ' only media files which match (case-insensitive!) the given extensions are added to the database';
- say ' This option is automatically saved to the user config.';
say '';
say 'stats querying:';
say ' -g <period> : group by a time period, defaults to total (which means no grouping by period)';
@@ -459,7 +459,8 @@ sub main::HELP_MESSAGE
say ' -r : sort in reverse (ascending) order, default is descending order';
say ' -e : skip lines with empty selected or grouping fields';
say ' -W <number> : define max char width of output, default: 80, a minimum of 50 is required for meaningful output';
- say ' This option is automatically saved to the user config.';
+ say ' -T <value> : show results as always as a table (on) or not (off) or auto (chart when single field is selected), default is auto';
+ say ' allowed values: auto, on, off';
say '';
say 'examples:';
say ' phosta -E jpg,jpeg,tiff -D ~/Documents/stats.db -p ~/Pictures';