注意:
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Development Guide/ebuilding
Jump to navigation
Jump to search
Ebuilding With Github
~/myoverlay/mygithub.ebuild
- Github ebuild scaffolding# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3
DESCRIPTION="My Ebuilds use"
HOMEPAGE=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="*"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}"
GITHUB_REPO=""
GITHUB_USER=""
GITHUB_TAG=""
SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_REPO}/tarball/${GITHUB_TAG} -> ${PN}-${GITHUB_TAG}.tar.gz"
src_unpack() {
unpack ${A}
mv "${WORKDIR}/${GITHUB_USER}-${GITHUB_REPO}"-??????? "${S}" || die
}
root # ebuild *.ebuild digest