Compare commits
No commits in common. "619d9d852d4df4cee34bf4053a1174be894c853f" and "f58cbafc3d3108fcf5519f76929a1b6ce3bff21e" have entirely different histories.
619d9d852d
...
f58cbafc3d
@ -15,6 +15,7 @@ SLOT="0"
|
|||||||
KEYWORDS="-* ~amd64"
|
KEYWORDS="-* ~amd64"
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
|
dosym ${BINTRON_HOME}/atom /usr/bin/atom
|
||||||
doicon "${S}"/atom.png
|
doicon "${S}"/atom.png
|
||||||
make_desktop_entry atom Atom atom "TextEditor;Development;IDE;"
|
make_desktop_entry atom Atom atom "TextEditor;Development;IDE;"
|
||||||
|
|
||||||
|
@ -18,5 +18,8 @@ src_install() {
|
|||||||
domenu ../../share/applications/${PN}.desktop
|
domenu ../../share/applications/${PN}.desktop
|
||||||
doicon ../../share/pixmaps/${PN}.png
|
doicon ../../share/pixmaps/${PN}.png
|
||||||
|
|
||||||
|
mkdir ./bin || die
|
||||||
|
ln -s ../${PN} ./bin/${PN} || die
|
||||||
|
|
||||||
bintron_src_install
|
bintron_src_install
|
||||||
}
|
}
|
||||||
|
@ -22,5 +22,7 @@ src_install() {
|
|||||||
done
|
done
|
||||||
make_desktop_entry ${PN} "Beekeeper Studio" ${PN} "Development;"
|
make_desktop_entry ${PN} "Beekeeper Studio" ${PN} "Development;"
|
||||||
|
|
||||||
|
mkdir ./bin || die
|
||||||
|
ln -s ../${PN} ./bin/${PN} || die
|
||||||
bintron_src_install
|
bintron_src_install
|
||||||
}
|
}
|
||||||
|
@ -23,5 +23,8 @@ src_install() {
|
|||||||
../../share/icons/hicolor/${size}x${size}/apps/github-desktop.png
|
../../share/icons/hicolor/${size}x${size}/apps/github-desktop.png
|
||||||
done
|
done
|
||||||
|
|
||||||
|
mkdir ./bin || die
|
||||||
|
ln -s ../github-desktop ./bin/github-desktop || die
|
||||||
|
|
||||||
bintron_src_install
|
bintron_src_install
|
||||||
}
|
}
|
||||||
|
@ -177,7 +177,6 @@ function bintron_remove_language_paks() {
|
|||||||
function bintron_system_replace() {
|
function bintron_system_replace() {
|
||||||
if use system-ffmpeg; then
|
if use system-ffmpeg; then
|
||||||
echo "Replacing bundled libffmpeg"
|
echo "Replacing bundled libffmpeg"
|
||||||
|
|
||||||
rm ./libffmpeg.so ||
|
rm ./libffmpeg.so ||
|
||||||
die "Failed: remove bundled libffmpeg"
|
die "Failed: remove bundled libffmpeg"
|
||||||
ln -s "${EROOT}"/usr/lib64/chromium/libffmpeg.so . ||
|
ln -s "${EROOT}"/usr/lib64/chromium/libffmpeg.so . ||
|
||||||
@ -185,18 +184,10 @@ function bintron_system_replace() {
|
|||||||
fi
|
fi
|
||||||
if use system-vulkan; then
|
if use system-vulkan; then
|
||||||
echo "Replacing bundled libvulkan"
|
echo "Replacing bundled libvulkan"
|
||||||
|
rm ./libvulkan.so.1 ||
|
||||||
if [[ -f ./libvulkan.so ]]; then
|
die "Failed: remove bundled libvulkan"
|
||||||
rm ./libvulkan.so ||
|
ln -s "${EROOT}"/usr/lib64/libvulkan.so.1 . ||
|
||||||
die "Failed: remove bundled libvulkan"
|
die "Failed: link libvulkan"
|
||||||
ln -s "${EROOT}"/usr/lib64/libvulkan.so . ||
|
|
||||||
die "Failed: link libvulkan"
|
|
||||||
elif [[ -f ./libvulkan.so.1 ]]; then
|
|
||||||
rm ./libvulkan.so.1 ||
|
|
||||||
die "Failed: remove bundled libvulkan"
|
|
||||||
ln -s "${EROOT}"/usr/lib64/libvulkan.so.1 . ||
|
|
||||||
die "Failed: link libvulkan"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -223,23 +214,8 @@ function bintron_src_compile() {
|
|||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
# Install all the files in a given directory, or current directory.
|
# Install all the files in a given directory, or current directory.
|
||||||
function bintron_install_copy() {
|
function bintron_install_copy() {
|
||||||
local dir="${1:=.}"
|
|
||||||
|
|
||||||
mkdir -p "${ED}/${BINTRON_HOME}" || die "Failed: mkdir"
|
mkdir -p "${ED}/${BINTRON_HOME}" || die "Failed: mkdir"
|
||||||
cp -r "${dir}"/* "${ED}/${BINTRON_HOME}" || die "Failed: copy $(pwd)"
|
cp -r ./"${1}"/* "${ED}/${BINTRON_HOME}" || die "Failed: copy $(pwd)"
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# @FUNCTION: bintron_prepare_bin
|
|
||||||
# @DESCRIPTION:
|
|
||||||
# Preparation for bintron_link_bin.
|
|
||||||
# If there is no "bin" directory and a file named "${PN}" exists,
|
|
||||||
# then create a link from from "bin/${PN}" to "${PN}".
|
|
||||||
function bintron_prepare_bin() {
|
|
||||||
local dir="${1:=.}"
|
|
||||||
|
|
||||||
mkdir -p "${dir}"/bin || die
|
|
||||||
ln -s "${dir}"/../${PN} "${dir}"/bin/${PN} || die
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -247,11 +223,9 @@ function bintron_prepare_bin() {
|
|||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
# Link launchers in "bin" directory.
|
# Link launchers in "bin" directory.
|
||||||
function bintron_link_bin() {
|
function bintron_link_bin() {
|
||||||
local dir="${1:=.}"
|
if [[ -d "${ED}/${BINTRON_HOME}"/bin ]]; then
|
||||||
|
|
||||||
if [[ -d "${dir}"/bin ]]; then
|
|
||||||
local bin
|
local bin
|
||||||
for bin in "${dir}"/bin/*; do
|
for bin in "${ED}/${BINTRON_HOME}"/bin/*; do
|
||||||
mkdir -p "${ED}/usr/bin/" || die "Failed: mkdir"
|
mkdir -p "${ED}/usr/bin/" || die "Failed: mkdir"
|
||||||
chmod +x "${bin}" || die "Failed: make ${bin} executable"
|
chmod +x "${bin}" || die "Failed: make ${bin} executable"
|
||||||
|
|
||||||
@ -268,12 +242,8 @@ function bintron_link_bin() {
|
|||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
# Default src_install.
|
# Default src_install.
|
||||||
function bintron_src_install() {
|
function bintron_src_install() {
|
||||||
if [[ ! -d ./bin ]] && [[ -f ./${PN} ]]; then
|
|
||||||
bintron_prepare_bin .
|
|
||||||
fi
|
|
||||||
bintron_link_bin .
|
|
||||||
|
|
||||||
bintron_install_copy .
|
bintron_install_copy .
|
||||||
|
bintron_link_bin
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user