aboutsummaryrefslogtreecommitdiff
blob: d46f511f830d92a38b218ca44a2e63b27c4c0586 (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
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="A thin wrapper around FFmpeg"
HOMEPAGE="http://avbin.github.io/"
SRC_URI="
	amd64? ( mirror://github/AVbin/AVbin/avbin-linux-x86-64-v${PV}.tar.bz2 )
	x86? ( mirror://github/AVbin/AVbin/avbin-linux-x86-32-v${PV}.tar.bz2 )"

LICENSE="GPL-3 LGPL-3"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""

pkg_setup(){
	if [ "${ABI}" == "amd64" ]; then
		S="${WORKDIR}"/avbin-linux-x86-64-v${PV}
	elif [ "${ABI}" == "x86" ]; then
		S="${WORKDIR}"/avbin-linux-x86-32-v${PV}
	fi
}

src_install() {
	ln -s libavbin.so.${PV} libavbin.so || die
	dolib.so libavbin.so*
}