summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXZS2017-10-24 23:54:06 +0200
committerXZS2017-10-24 23:54:06 +0200
commit2d4ae0b32478edd806df42442487eaed02d5bbe6 (patch)
tree6813070e650a93f596694d32af67ba30f0dcd8db
parentbd40726d562988d1107472786773966dc0254c59 (diff)
downloadaur-medianumbers-git.tar.gz
Dissect dependencies
Dependencies not needed for all the programs can be marked as optional so that they can be omitted from installation when the corresponding tools are not to be used.
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD6
2 files changed, 9 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4d69bbefcc8f..543379016890 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -8,9 +8,10 @@ pkgbase = medianumbers-git
makedepends = ruby-ronn
makedepends = git
depends = bash
- depends = ffmpeg
- depends = grep
- depends = bc
+ optdepends = ffmpeg: for duration and stretch
+ optdepends = grep: for duration
+ optdepends = bc: for stretch
+ optdepends = sed: for sum-time
provides = medianumbers=r0
conflicts = medianumbers
source = medianumbers::git+file:///tmp/medianumbers
diff --git a/PKGBUILD b/PKGBUILD
index a2adb91b7def..f750981518c8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,11 @@ pkgdesc="tools to manipulate video and audio time codes"
arch=('any')
url="https://github.com/dffischer/medianumbers/"
license=('GPL')
-depends=('bash' 'ffmpeg' 'grep' 'bc')
+depends=('bash')
+optdepends=('ffmpeg: for duration and stretch'
+ 'grep: for duration'
+ 'bc: for stretch'
+ 'sed: for sum-time')
makedepends=('ruby-ronn')
makedepends+=('git')