summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8610b22aae93e26fb1f246124670a0b2b6c28713 (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: Sefa Eyeoglu <contact@scrumplex.net>

pkgname=libaudec
pkgver=0.3.4
pkgrel=1
pkgdesc="A library for reading and resampling audio files"
arch=('x86_64' 'i686')
url="https://git.sr.ht/~alextee/libaudec"
license=('AGPL3')
depends=("libsamplerate" "libsndfile")
makedepends=("meson" "ninja" "cmake")
source=("$pkgname-v$pkgver::https://git.sr.ht/~alextee/libaudec/archive/v$pkgver.tar.gz")
sha256sums=('edaf7cb187c5e0235e527cde741708e7c8144c9a0c837182dd36d61f5ea26f23')

prepare() {
	cd "$pkgname-v$pkgver"

    rm -r subprojects
}

build() {
	cd "$pkgname-v$pkgver"

    meson build --buildtype=release --prefix=/usr \
      -Dtests=true
    ninja -C build
}

check() {
	cd "$pkgname-v$pkgver"

    ninja -C build test
}

package() {
	cd "$pkgname-v$pkgver"

    install -vDm 644 CHANGELOG.md README.md \
      -t "${pkgdir}/usr/share/doc/${pkgname}/"

    DESTDIR="${pkgdir}/" ninja -C build install
}