# Copyright (C) 2020 Daniel Mueller <deso@posteo.net>
# SPDX-License-Identifier: GPL-3.0-or-later

EAPI=8

DESCRIPTION="A script to transfer PDF files to the reMarkable tablet."
HOMEPAGE="https://github.com/adaerr/reMarkableScripts"

LICENSE=""
SLOT="0"
KEYWORDS="amd64"
IUSE=""

# app-text/ghostscript-gpl seems to be an (undisclosed?) dependency of
# media-gfx/imagemagick, actually. Specifically, convert seems to
# require gs.
RDEPEND="
	app-text/ghostscript-gpl
	media-gfx/imagemagick
	sys-apps/util-linux
"
DEPEND="${RDEPEND}"

EGIT_BRANCH="master"
EGIT_COMMIT="ab902841990c668bfe5a96400be431b234b84c11"
EGIT_REPO_URI="https://github.com/adaerr/reMarkableScripts.git"

inherit git-r3

src_install() {
	exeinto /usr/bin
	doexe pdf2remarkable.sh
}