summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a4e808a609a63d0992754eb6156cb76317859bc (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
43
44
45
46
# Maintainer: AudioLinux  <audiolinux AT fastmail DOT fm>
 
pkgname=sox-dsd-git
pkgver=14.4.2.r69.g0be259ea
pkgrel=5
pkgdesc="SoX Resampler library dsd fork"
arch=('i686' 'x86_64' 'x86_64_v3' 'x86_64_v4' 'aarch64')
license=('GPL' 'LGPL')
depends=('libltdl' 'file' 'libsndfile' 'libpng' 'lame' 'opencore-amr' 'gsm')
makedepends=('libao' 'libmad' 'libid3tag' 'wavpack' 'libpulse' 'opusfile' 'autoconf')
optdepends=('libao: for ao plugin'
            'libmad: for mp3 plugin'
            'libid3tag: for mp3 plugin'
            'wavpack: for wavpack plugin'
            'libpulse: for pulse plugin'
	    'opusfile: for opus plugin')
provides=("sox=${pkgver}")
conflicts=('sox')
url="http://sox.sourceforge.net/"
source=("$pkgname::git+https://github.com/mansr/sox")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --long --tags | sed 's/^sox.//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "$pkgname"/src
  echo "$pkgname"/src
  patch < ../../../stream.patch
}


build() {
 cd $pkgname
 autoreconf -i
  ./configure --prefix=/usr --sysconfdir=/etc \
  --with-distro="Arch Linux"
 make
}

package() {
  cd $pkgname
  make DESTDIR="$pkgdir" install
}