aboutsummaryrefslogtreecommitdiffstats
path: root/community/tinycompress/APKBUILD
blob: f67ab11f7e289988443c4bd7980eca035f09f35f (plain) (blame)
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
# Contributor: Minecrell <minecrell@minecrell.net>
# Maintainer: Minecrell <minecrell@minecrell.net>
pkgname=tinycompress
pkgver=1.2.4
pkgrel=0
pkgdesc="Userspace library for ALSA compressed APIs"
url="https://www.alsa-project.org"
arch="all"
license="BSD-3-Clause OR LGPL-2.1-only"
makedepends="linux-headers ffmpeg-dev"
subpackages="$pkgname-dev $pkgname-fcplay"
source="ftp://ftp.alsa-project.org/pub/tinycompress/tinycompress-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-fcplay
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

fcplay() {
	pkgdesc="$pkgdesc (fcplay tool)"
	license="LGPL-2.1-only"

	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/fcplay "$subpkgdir"/usr/bin/fcplay
}

sha512sums="81a771c56ebe9342bd3ea38813ab910bb2a2c657781175756dfd9294abf11fe4cccc4ffbc14f420c89573ff465289516e751d9cc37ef5b2edece319d79ac2aac  tinycompress-1.2.4.tar.bz2"