Compare commits

..

5 Commits

Author SHA1 Message Date
Maciej Barć
ce4239474d
mail-client/freelook-bin: remove
old, unmaintained, upstream removed binaries

Signed-off-by: Maciej Barć <xgqt@riseup.net>
2021-10-19 00:20:39 +02:00
Maciej Barć
dfdca2f0b0
dev-util/github-desktop: add 2.9.3
Signed-off-by: Maciej Barć <xgqt@riseup.net>
2021-10-19 00:20:39 +02:00
Maciej Barć
b74975bdc8
app-editors/vscode: add 1.61.1
Signed-off-by: Maciej Barć <xgqt@riseup.net>
2021-10-19 00:20:38 +02:00
Maciej Barć
68e3c7e21f
app-editors/atom: add 1.58.0
Signed-off-by: Maciej Barć <xgqt@riseup.net>
2021-10-19 00:20:38 +02:00
Maciej Barć
6ee93b4108
eclass: add bintron.eclass
Signed-off-by: Maciej Barć <xgqt@riseup.net>
2021-10-19 00:20:38 +02:00
14 changed files with 372 additions and 123 deletions

View File

@ -0,0 +1 @@
DIST atom-1.58.0.tar.gz 203905263 BLAKE2B 95311b625bbee45f64d3e3d44f7870fba0efaa31ca14025e68d587b60e5d618c89e948dae7856348f0e55ea434f80d484f74809f1d244d6609f84023047794e6 SHA512 5e5c456ca745e2e51c4c24a2cba76d59ae9c519639f301b8677b5627ebecc1b8c114fc1942c22318266fe985ca1064618dc89379ecf8cdd935bfee7e605f33f1

View File

@ -0,0 +1,23 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop bintron
DESCRIPTION="A hackable text editor for the 21st Century"
HOMEPAGE="https://atom.io/"
SRC_URI="https://github.com/atom/atom/releases/download/v${PV}/atom-amd64.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/atom-${PV}-amd64"
LICENSE="MIT"
SLOT="0"
KEYWORDS="-* ~amd64"
src_install() {
dosym ${BINTRON_HOME}/atom /usr/bin/atom
doicon "${S}"/atom.png
make_desktop_entry atom Atom atom "TextEditor;Development;IDE;"
bintron_src_install
}

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
</pkgmetadata>

View File

@ -0,0 +1,3 @@
DIST vscode-1.61.1-amd64.tar.gz 112707199 BLAKE2B f992466965e6807c000718c90c59e5d45e46192c8ec4a14e843ef71bebeb86bfc281ea2e7c41a5c515a904ecff82c3edc47ae33d769a2a69f154529ae4bf6a25 SHA512 4bc9fa8aa1160573f367c609a175547b12592f07a36d5c49c0d1434a7b22257dbb6ec39ce3bbc40f55177a9de51d49ac8b85e563cae9a5cff520a812f92afd7e
DIST vscode-1.61.1-arm.tar.gz 94342599 BLAKE2B 98ffc184981197bfd6fb1a0104e8a95ac18df27eee9e44e46fd42bd3986176b0996a8a454414c860a15f6d3679c3e3ab0677cb380de2b4d4f154ba83b939133c SHA512 dd9066ba6d0ad26f1b49cebeeed5d2c45be97a6e749f1a1fe83f259311f89e25ee79d3e305481879504b3e4a99bb6aa61025403265304f82ddc348cb38104140
DIST vscode-1.61.1-arm64.tar.gz 107928610 BLAKE2B aa88e8784976d02f35c08aee64e25f63d3cf5ab53c2941f1170dc1e5a59000e853cb6f7bb597d6035b61e8421639d60b6cd63b62667d54a7bea1b2e2e7de0515 SHA512 7e561e3d2a79f58062e256cf0d0cf98eb0d16d55b943e8eeeda9e19b00922cfe63f70bb386de0337a83ec852cc83ca770e31fad085f60cf09ec70ac27d2a9b7c

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
</pkgmetadata>

View File

@ -0,0 +1,62 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit bintron desktop
DESCRIPTION="Multiplatform Visual Studio Code from Microsoft"
HOMEPAGE="https://code.visualstudio.com"
SRC_URI="
amd64? ( https://update.code.visualstudio.com/${PV}/linux-x64/stable -> ${P}-amd64.tar.gz )
arm? ( https://update.code.visualstudio.com/${PV}/linux-armhf/stable -> ${P}-arm.tar.gz )
arm64? ( https://update.code.visualstudio.com/${PV}/linux-arm64/stable -> ${P}-arm64.tar.gz )
"
S="${WORKDIR}"
LICENSE="
Apache-2.0
BSD
BSD-1
BSD-2
BSD-4
CC-BY-4.0
ISC
LGPL-2.1+
Microsoft-vscode
MIT
MPL-2.0
openssl
PYTHON
TextMate-bundle
Unlicense
UoI-NCSA
W3C
"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm ~arm64"
correct_dir() {
if use amd64; then
cd "${WORKDIR}/VSCode-linux-x64" || die
elif use arm; then
cd "${WORKDIR}/VSCode-linux-armhf" || die
elif use arm64; then
cd "${WORKDIR}/VSCode-linux-arm64" || die
else
die "Visual Studio Code only supports amd64, arm and arm64"
fi
}
src_prepare() {
correct_dir
bintron_src_prepare
}
src_install() {
correct_dir
bintron_src_install
newicon ./resources/app/resources/linux/code.png vscode.png
make_desktop_entry code VSCode vscode "TextEditor;Development;IDE;"
}

View File

@ -0,0 +1 @@
DIST github-desktop-2.9.3.deb 71379536 BLAKE2B 945c956e4c58fc89f00c5589ac6c88f0e8be88a611e095c160181000c404d70640bcc67699d13d35a47baf2ca0f8d14165363f3958ca5e9187d2683515f927fa SHA512 0e7157880af102b6a9c69de81a29a3da2e7c96a85fa1c42a6e0316467df762af4d904894e82f9d63fb9b769d8acee81cba87445b3a72fefe912d133847f86dee

View File

@ -0,0 +1,30 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop unpacker bintron
DESCRIPTION="GitHub Desktop for Linux"
HOMEPAGE="https://github.com/shiftkey/desktop"
SRC_URI="https://github.com/shiftkey/desktop/releases/download/release-${PV}-linux3/GitHubDesktop-linux-${PV}-linux3.deb -> ${P}.deb"
S="${WORKDIR}/usr/lib/github-desktop"
LICENSE="MIT"
SLOT="0"
KEYWORDS="-* ~amd64"
src_install() {
domenu ../../share/applications/github-desktop.desktop
local size
for size in 32 64 128 256 512; do
doicon --size ${size} \
../../share/icons/hicolor/${size}x${size}/apps/github-desktop.png
done
mkdir ./bin || die
ln -s ../github-desktop ./bin/github-desktop || die
bintron_src_install
}

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
</pkgmetadata>

237
eclass/bintron.eclass Normal file
View File

@ -0,0 +1,237 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: bintron.eclass
# @MAINTAINER:
# src_prepare group
# @AUTHOR:
# Maciej Barć <xgqt@riseup.net>
# @SUPPORTED_EAPIS: 7
# @BLURB: Common configuration eclass for binary packages built with Electron
# @DESCRIPTION:
# This eclass is used in Electron packages ebuilds
# shellcheck shell=bash disable=2034
# Inherits
inherit optfeature xdg
case "${EAPI}"
in
[0-6] )
die "EAPI: ${EAPI} too old"
;;
7 )
true
;;
* )
die "EAPI: ${EAPI} not supported"
;;
esac
# Exported functions
export_functions=(
src_prepare
src_compile
src_install
pkg_postinst
)
EXPORT_FUNCTIONS "${export_functions[@]}"
RESTRICT+=" bindist mirror "
_BINTRON_LANGS="
am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he
hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr
sv sw ta te th tr uk vi zh-CN zh-TW
"
# @ECLASS-VARIABLE: BINTRON_LANGS
# @DESCRIPTION:
# List of language packs available for this package.
: ${BINTRON_LANGS:=${_BINTRON_LANGS}}
# @FUNCTION: _bintron_set_l10n_IUSE
# @USAGE:
# @INTERNAL
# @DESCRIPTION:
# Converts and adds BINTRON_LANGS to IUSE. Called automatically if
# BINTRON_LANGS is defined.
_bintron_set_l10n_IUSE() {
local lang
for lang in ${BINTRON_LANGS}; do
# Default to enabled since we bundle them anyway.
# USE-expansion will take care of disabling the langs the user has not
# selected via L10N.
IUSE+=" l10n_${lang} "
done
}
if [[ ${BINTRON_LANGS} ]]; then
_bintron_set_l10n_IUSE
fi
BINTRON_DEPEND="
>=app-accessibility/at-spi2-atk-2.26:2
>=app-accessibility/at-spi2-core-2.26:2
>=dev-libs/atk-2.26
>=dev-libs/libxml2-2.9.4-r3[icu]
>=dev-libs/nss-3.26
>=media-libs/alsa-lib-1.0.19
>=media-libs/freetype-2.11.0-r1
>=media-libs/libwebp-0.4.0
>=net-print/cups-1.3.11
app-arch/bzip2
dev-libs/expat
dev-libs/glib:2
dev-libs/nspr
media-libs/flac
media-libs/fontconfig
media-libs/libjpeg-turbo
media-libs/libpng
net-misc/curl[ssl]
sys-apps/dbus
sys-apps/pciutils
sys-libs/zlib[minizip]
virtual/opengl
virtual/ttf-fonts
virtual/udev
x11-libs/cairo
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:3[X]
x11-libs/libxkbcommon
x11-libs/pango
"
RDEPEND+="${BINTRON_DEPEND}"
# The package will be already compiled,
# also most likely the package will be pre-stripped too.
QA_PREBUILT='*'
QA_PRESTRIPPED='*'
# @ECLASS-VARIABLE: BINTRON_HOME
# @DESCRIPTION:
# Path where the package contents will we installed.
: ${BINTRON_HOME:="/usr/share/${PN}/"}
# Adapted from chromium-2.eclass
# @FUNCTION: bintron_remove_language_paks
# @USAGE:
# @DESCRIPTION:
# Removes pak files from the current directory for languages that the user has
# not selected via the L10N variable.
# Also performs QA checks to ensure BINTRON_LANGS has been set correctly.
function bintron_remove_language_paks() {
pushd ./locales >/dev/null || die
# Look for missing pak files.
local lang
for lang in ${BINTRON_LANGS}; do
if [[ ! -e ${lang}.pak ]]; then
eqawarn "L10N warning: no .pak file for ${lang} (${lang}.pak not found)"
fi
done
# Remove pak files that the user does not want.
local pak
for pak in *.pak; do
lang=${pak%.pak}
if [[ ${lang} == en-US ]]; then
continue
fi
if ! has ${lang} ${BINTRON_LANGS}; then
eqawarn "L10N warning: no ${lang} in LANGS"
continue
fi
if ! use l10n_${lang}; then
rm "${pak}" || die
rm -f "${pak}.info" || die
fi
done
popd >/dev/null || die
}
# @FUNCTION: bintron_src_prepare
# @DESCRIPTION:
# Default src_prepare.
function bintron_src_prepare() {
xdg_src_prepare
bintron_remove_language_paks
}
# @FUNCTION: bintron_src_compile
# @DESCRIPTION:
# Default src_compile.
function bintron_src_compile() {
true
}
# @FUNCTION: bintron_install_copy
# @DESCRIPTION:
# Install all the files in a given directory, or current directory.
function bintron_install_copy() {
mkdir -p "${ED}/${BINTRON_HOME}" || die "Failed: mkdir"
cp -r ./"${1}"/* "${ED}/${BINTRON_HOME}" || die "Failed: copy $(pwd)"
}
# @FUNCTION: bintron_link_bin
# @DESCRIPTION:
# Link launchers in "bin" directory.
function bintron_link_bin() {
if [[ -d "${ED}/${BINTRON_HOME}"/bin ]]; then
local bin
for bin in "${ED}/${BINTRON_HOME}"/bin/*; do
mkdir -p "${ED}/usr/bin/" || die "Failed: mkdir"
chmod +x "${bin}" || die "Failed: make ${bin} executable"
local binname
binname="$(basename "${bin}")"
ln -s "${BINTRON_HOME}/${binname}" "${ED}/usr/bin/${binname}" ||
die "Failed: link ${bin}"
done
fi
}
# @FUNCTION: bintron_src_install
# @DESCRIPTION:
# Default src_install.
function bintron_src_install() {
bintron_install_copy .
bintron_link_bin
}
# @FUNCTION: bintron_pkg_postinst
# @DESCRIPTION:
# Default pkg_postinst.
function bintron_pkg_postinst() {
xdg_pkg_postinst
optfeature "password storage" app-crypt/libsecret kde-frameworks/kwallet
}

View File

@ -1,2 +0,0 @@
DIST electron-outlook_1.0.0_amd64.deb 45753716 BLAKE2B 7a58ae9a7b17647cf1dd6ce750bbfba2a344aadba12552b175e8aa394564f6ef8968db576cf191b5965615fed771822a4f3142c689aee1d326b94224f345e99f SHA512 fba47d2e5a8f9a9920a523681ad7f06036ca7013683217bc2dbddda90dc409e19779d702498604f601ee08e83cf10543da9bfb4eca8a2fa8e48c05a82f0cff61
DIST electron-outlook_1.0.1_amd64.deb 50733580 BLAKE2B 3c4be6090454d111f1b0875f0da4f322b229e23ececa4ab6f912634684b107a28132da46010c7c2aedd4fe1ec702e657e1fb762affe6d373deb28575117f53c8 SHA512 a8639165f334b8cde3489102d72bf3b68c71ac8c692d5f1b4657a7cfc6cc899d26d7d669e26e164cd554472c33db4a9ada72bdfad155d40b11858d92f5d04cd7

View File

@ -1,57 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN=electron-outlook
MY_P="${MY_PN}_${PV}"
inherit unpacker xdg-utils
DESCRIPTION="Freelook, an Electron-based client for Microsoft Outlook"
HOMEPAGE="https://github.com/eNkru/freelook"
SRC_URI="https://github.com/eNkru/${PN//-bin}/releases/download/v${PV}/${MY_P}_amd64.deb"
RESTRICT="bindist mirror"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
DEPEND=""
RDEPEND="
>=net-print/cups-2.0.0
dev-libs/libappindicator
dev-libs/nss
gnome-base/gconf:2
x11-libs/libXtst
x11-libs/libnotify
"
QA_PREBUILT="
/opt/Freelook/*
"
S="${WORKDIR}"
pkg_setup() {
use amd64 || die "Arch not supported"
}
src_unpack() {
unpack_deb ${A}
}
src_install() {
mv * "${D}" || die
rm -rd "${D}/usr/share/doc"
dosym "../../opt/Freelook/${MY_PN}" "${EROOT}/usr/bin/${MY_PN}"
}
pkg_postinst() {
xdg_icon_cache_update
elog "Keep in mind that Freelook binary is named electron-outlook..."
}
pkg_postrm() {
xdg_icon_cache_update
}

View File

@ -1,57 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN=electron-outlook
MY_P="${MY_PN}_${PV}"
inherit unpacker xdg-utils
DESCRIPTION="Freelook, an Electron-based client for Microsoft Outlook"
HOMEPAGE="https://github.com/eNkru/freelook"
SRC_URI="https://github.com/eNkru/${PN//-bin}/releases/download/v${PV}/${MY_P}_amd64.deb"
RESTRICT="bindist mirror"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
DEPEND=""
RDEPEND="
>=net-print/cups-2.0.0
dev-libs/libappindicator
dev-libs/nss
gnome-base/gconf:2
x11-libs/libXtst
x11-libs/libnotify
"
QA_PREBUILT="
/opt/Freelook/*
"
S="${WORKDIR}"
pkg_setup() {
use amd64 || die "Arch not supported"
}
src_unpack() {
unpack_deb ${A}
}
src_install() {
mv * "${D}" || die
rm -rd "${D}/usr/share/doc"
dosym "../../opt/Freelook/${MY_PN}" "${EROOT}/usr/bin/${MY_PN}"
}
pkg_postinst() {
xdg_icon_cache_update
elog "Keep in mind that Freelook binary is named electron-outlook..."
}
pkg_postrm() {
xdg_icon_cache_update
}

View File

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">eNkru/freelook</remote-id>
</upstream>
</pkgmetadata>