dalu Guru
Joined: 20 Jan 2003 Posts: 530
|
Posted: Sat Nov 18, 2017 8:59 am Post subject: where do package assets go? |
|
|
I'm trying to write a dgraph.io ebuild
Code: |
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
SLOT="0"
KEYWORDS="~amd64"
SRC_URI="https://github.com/dgraph-io/dgraph/releases/download/v${PV}/dgraph-linux-amd64-v${PV}.tar.gz"
S="${WORKDIR}"
src_install(){
exeinto /usr/bin
doexe ./*
}
|
but this package also has a separate assets package
https://github.com/dgraph-io/dgraph/releases
https://github.com/dgraph-io/dgraph/releases/download/v0.9.1/assets.tar.gz
which apparently should be extracted to the binary dir
The binary currently doesn't seem to have an option to specify the assets root dir (will open an issue)
Code: |
switch assets_dir_option_present {
case true:
where would I put those assets in Gentoo?
case false:
where would I put the binary and assets combo?
and how would I require 2 packages in an ebuild and have them extracted into the same directory?
}
|
Or should I maybe have the assets as a separate package and let a new `dgraph-ui-bin` package on `dgraph-bin`? |
|