aboutsummaryrefslogtreecommitdiffstats
path: root/main/libresample/APKBUILD
blob: 0c8289049d1e9b6a83be877fc3a42645b74c1834 (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
# Contributor: 
# Maintainer: 
pkgname=libresample
pkgver=0.1.3
pkgrel=1
pkgdesc="real-time library for sampling rate conversion"
url="https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html"
arch="all"
license="GPL"
depends=
makedepends="wget"
install=
subpackages=
source="https://ccrma.stanford.edu/~jos/gz/libresample-$pkgver.tgz"

# append extra dependencies to -dev subpackage
# remove if not used.
# depends_dev="somepackage-dev"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	# apply patches here
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	install -d "$pkgdir"/usr/include "$pkgdir"/usr/lib
	install -m644 include/libresample.h "$pkgdir"/usr/include/
	install -m644 libresample.a "$pkgdir"/usr/lib/

}

md5sums="99bc5ea15ef76b83e5655a10968f674b  libresample-0.1.3.tgz"