summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0fec5e09d87ae23c84b3aa6b17542374b8997a06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Gabriel Magno <gabrielmagno1@gmail.com>

_pkgname=spectro
pkgname=spectro-git
pkgver=r48.1714c5a
pkgrel=2
pkgdesc="Provides BBCode formatted text with the spectrograms of audio files."

arch=('any')
url="https://github.com/welpo/spectro"
license=('GPL3')

makedepends=('git')
depends=('sox' 'curl')
optdepends=('ffmpeg: to process ape, WMA, MP4 and AAC files'
            'imagemagick: to use the --compare feature'
            'optipng: to optimise the spectrograms'
            'perl: to include the file SHA on the output (shasum)')

source=("git+https://github.com/welpo/spectro.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$_pkgname"
}

package() {
  cd "$_pkgname"
  install -Dm755 "spectro" "$pkgdir/usr/bin/spectro"
}