summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 93316d7b3da4f1abd1db864a1bcce03f05c76e7e (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
36
37
38
39
40
41
42
# Mantainer: 3ED <krzysztof1987@gmail.com>

pkgname=mixramp
pkgver=1.3
pkgrel=5
pkgdesc="A utility to analyse sound files and print out the volume profile of the start and end. The idea is to embed those profiles in metadata so players can do intelligent mixing between tracks. Supports FLAC, OGG and MP3."
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="http://sourceforge.net/projects/mixramp/"
license=('GPL')
depends=('audiofile')
optdepends=('python-eyed3: writer for mp3 tags'
            'mpg123: mp3 decoder, needed to perform mixramp analysis'
            'flac: decoder and writer for flac tags'
            'vorbis-tools: decoder and writer for ogg/vorbis tags'
            'mpd: player which support mixramp tags')
source=("${pkgname}-${pkgver}.tar.gz::http://sourceforge.net/projects/${pkgname}/files/${pkgname}_${pkgver}.tgz/download"
        "01-without-werror.patch"
        "02-fix-eyed3-args.patch"
        "03-ogg-support.patch"
        "04-oggcomments-overwrite-policy.patch")
sha256sums=('6d01a0ce0907a7fd225840a21d39144a113b551d176439964bdb5351aecf724c'
            '9f6e34a9c7a59e9723a2d003c5008670e89f73aef8494849e6ec5a729882abf8'
            'cc939c0bc1bacf7f1716a1fec972d3f8fbc316e0d891dc61cc4e5e86279e2942'
            'ac3200d3915052bc2962758d44f2578e08459000a2b4af3177a779e1e8582a12'
            '059d700a6e11cf9becc4cfce4286c0182bccc84b03afd6434195d2b4f6b45079')

prepare() {
  cd "$srcdir/$pkgname"
  patch -p0 -i "$srcdir"/01-without-werror.patch
  patch -p0 -i "$srcdir"/02-fix-eyed3-args.patch
  patch -p0 -i "$srcdir"/03-ogg-support.patch
  patch -p0 -i "$srcdir"/04-oggcomments-overwrite-policy.patch
}
build() {
  cd "$srcdir/$pkgname"
  make
}
package() {
  cd "$srcdir/$pkgname"
  install -dm755 "$pkgdir"/usr/bin/
  install -m755 mixramp mixramp-tag "$pkgdir"/usr/bin/
}