Browse Source

update dependencies and package build

master
René Wagner 5 months ago
parent
commit
83298c0db3
Signed by: rwa GPG Key ID: 2B8BCD69606E7F19
  1. 11
      PKGBUILD
  2. 2
      README.md
  3. 7
      phosta

11
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() {

2
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

7
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';

Loading…
Cancel
Save