summaryrefslogtreecommitdiff
path: root/pcr/filter_audio-git/PKGBUILD
blob: e29c31ccc7668ff7171b72c21b6c91e705ff9ee7 (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
# Maintainer (Arch): Ivan Shapovalov <intelfx100@gmail.com>

pkgname=filter_audio-git
pkgver=r20.2c3678f
pkgrel=1
pkgdesc="An easy to use audio filtering library made from webrtc code"
arch=('i686' 'x86_64')
url="https://github.com/irungentoo/filter_audio"
license=('custom:BSD')
makedepends=('git')
provides=("filter_audio")
conflicts=("filter_audio")
source=("git://github.com/irungentoo/filter_audio.git"
        'Makefile'
		'COPYING')
sha512sums=('SKIP'
            'c05ec200025f259f5ca60974339b3bba19b5d3612b1fb1fed7b7cdca26bb6dd17de63ce0b63f148af52ae391079b6b4575811ec5b6c4484ab509be878d93256a'
            '2e1adab66b8b286d6ac5a373808e3f2e3a00c981bbede4bda16576d091e7df306b92aa24a8f759f53e0efcf12ca86d46e8d02845fd83d763c30f6153ee91ef23')

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

build() {
	cd filter_audio
	make -f "$srcdir/Makefile"
}

package() {
    cd filter_audio
    make -f "$srcdir/Makefile" DESTDIR="$pkgdir" install
    install -Dm644 "$srcdir/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}