summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b20c77b0b14792f0cafd784acf71ae9c957d66f2 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Maintainer: AudioLinux  <audiolinux AT fastmail DOT fm>
 
pkgname=sox-ng-git
pkgver=14.5.0.2.r264.gd8400bb9
pkgrel=1
pkgdesc="sox_ng is another Swiss Army Knife of sound processing utilities. It can convert audio files to other popular audio file types and also apply sound effects and filters during the conversion"
arch=('x86_64' 'x86_64_v3' 'x86_64_v4' 'aarch64')
license=('GPL' 'LGPL2.1')
depends=(
  'file'
  'gcc-libs'
  'gsm'
  'libid3tag'
  'libltdl'
  'libpng'
  'zlib'
)
makedepends=(
  'alsa-lib'
  'autoconf-archive'
  'flac'
  'git'
  'lame'
  'libao'
  'libmad'
  'libpulse'
  'libsndfile'
  'libvorbis'
  'opencore-amr'
  'opusfile'
  'twolame'
  'wavpack'
)
checkdepends=('time')
optdepends=(
  'alsa-lib: alsa plugin'
  'flac: flac plugin'
  'lame: mp3 plugin'
  'libao: ao plugin'
  'libmad: mp3 plugin'
  'libpulse: pulse plugin'
  'libsndfile: caf, fap, mat4, mat5, paf, pvf, sd2, sndfile, w64 and xi plugins'
  'libvorbis: vorbis plugin'
  'opencore-amr: amr_nb and amr_wb plugins'
  'opusfile: opus plugin'
  'twolame: mp3 plugin'
  'wavpack: wavpack plugin'
)
url="https://codeberg.org/sox_ng/sox_ng"
source=("$pkgname::git+https://codeberg.org/sox_ng/sox_ng.git")
sha256sums=('SKIP')

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

prepare() {
  cd "$pkgname"/src
  echo "$pkgname"/src
  
#  msg2 "Implementing DSD patches"
#  while read patch; do
#  echo "Applying $patch"
#  git apply $patch || exit 2
#  done <<< $(ls ../../../*.patch)
}

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

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