blob: 347a6833a3ec333a7f1f507a617a05a9a37578c4 (
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
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=soxr
pkgver=0.1.3
pkgrel=1
pkgdesc="High quality, one-dimensional sample-rate conversion library"
url="https://sourceforge.net/projects/soxr"
arch="all"
license="LGPL-2.1-or-later"
depends_dev="cmake"
makedepends="$depends_dev"
subpackages="$pkgname-doc $pkgname-static $pkgname-dev"
source="$pkgname-$pkgver.tar.xz::https://sourceforge.net/projects/$pkgname/files/$pkgname-$pkgver-Source.tar.xz/download"
builddir="$srcdir/$pkgname-$pkgver-Source"
build() {
mkdir -p "$builddir"/static "$builddir"/shared
# We can't build the static and shared libs in one go, so build them one by one...
cd "$builddir"/static
cmake \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DBUILD_SHARED_LIBS=False \
-DBUILD_TESTS=ON \
..
make
cd "$builddir"/shared
cmake \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DBUILD_SHARED_LIBS=True \
-DBUILD_TESTS=ON \
..
make
}
check() {
cd "$builddir"/static
make test
cd "$builddir"/shared
make test
}
package() {
cd "$builddir"/static
make DESTDIR="$pkgdir" install
cd "$builddir"/shared
make DESTDIR="$pkgdir" install
}
doc() {
mkdir -p "$subpkgdir/usr"
mv "$pkgdir/usr/share" "$subpkgdir/usr/share"
}
sha512sums="f4883ed298d5650399283238aac3dbe78d605b988246bea51fa343d4a8ce5ce97c6e143f6c3f50a3ff81795d9c19e7a07217c586d4020f6ced102aceac46aaa8 soxr-0.1.3.tar.xz"
|