# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit toolchain-funcs

DESCRIPTION="Decompress Mozilla Firefox bookmarks backup files"
HOMEPAGE="https://github.com/avih/dejsonlz4/"
SRC_URI="https://github.com/avih/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

src_compile() {
	$(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} \
		-o ${PN} \
		src/dejsonlz4.c \
		src/lz4.c \
		|| die "compile failed"
}

src_install() {
	dobin ${PN}
}