summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dfeabbb10556a27f625f99330b7c7c035f960bef (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
# Maintainer: Your Name <ryexander@gmail.com>
pkgname=silan
pkgrel=1
pkgver=0.3.2
pkgdesc="A standalone application to analyze audio files for silence and
print ranges of detected signals."
arch=('i686' 'x86_64')
url="https://github.com/x42/silan"
license=('GPL2')
depends=('libsndfile' 'ffmpeg')
makedepends=('git')
provides=("${pkgname}")
conflicts=("${pkgname}-git")
replaces=()
backup=()
options=()
install=
source=("https://github.com/x42/silan/archive/v${pkgver}.tar.gz")
noextract=()
md5sums=('2eb87b44732d2dcf6cc3e26b2105946b')

prepare() {
  cd "$srcdir/${pkgname}-${pkgver}"
  grep -rl 'AVCODEC_MAX_AUDIO_FRAME_SIZE' . | xargs  sed -i "s%AVCODEC_MAX_AUDIO_FRAME_SIZE%192000%g"
}

build() {
	cd "$srcdir/${pkgname}-${pkgver}"
	./autogen.sh
	./configure --prefix=/usr
	make
}

check() {
	cd "$srcdir/${pkgname}-${pkgver}"
	make -k check
}

package() {
	cd "$srcdir/${pkgname}-${pkgver}"
	make DESTDIR="$pkgdir/" install
}