aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lsmash/APKBUILD
blob: 59e8147ce2e0abdd91ac6112bba7b4787c2eaffa (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
# Contributor: Alexander Edland <alpine@ocv.me>
# Maintainer: Alexander Edland <alpine@ocv.me>
pkgname=lsmash
pkgver=2.14.5
pkgrel=0
pkgdesc="MP4 and MOV muxer/demuxer"
url="https://github.com/l-smash/l-smash"
arch="all"
license="ISC"
options="!check"
subpackages="$pkgname-dev"
source="lsmash-$pkgver.tar.gz::https://github.com/l-smash/l-smash/archive/v$pkgver.tar.gz"
builddir="$srcdir/l-smash-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--extra-cflags=-fPIC \
		--enable-shared
	make
}

package() {
	cd "$builddir"
	make -j1 DESTDIR="$pkgdir" install
	
	# prefix binaries with lsmash- because
	# /usr/bin/muxer is likely to cause collisions
	for i in "$pkgdir"/usr/bin/*; do
		mv "$i" "${i%/*}/lsmash-${i##*/}"
	done
}

sha512sums="1dc38cd89d7b317b608d5f5f411ffeac3c1e7fdeea2fc2d7c09d209dce90756c51c27198c20199082fc2168f966a604cef3f9cfd2fd17086ae0f9c0bf50f1ec7  lsmash-2.14.5.tar.gz"