x11-themes/src_prepare-artwork: new package; add version 9999 (live)

Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
Maciej Barć 2020-10-28 19:55:07 +01:00
parent 00f309f269
commit f50c7636a6
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
2 changed files with 67 additions and 0 deletions

View File

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

View File

@ -0,0 +1,60 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop git-r3
DESCRIPTION="Miscellaneous logos, wallpapers and other artwork from src_prepare group"
HOMEPAGE="https://gitlab.com/src_prepare/artwork"
EGIT_REPO_URI="https://gitlab.com/src_prepare/artwork"
RESTRICT="binchecks mirror strip test"
LICENSE="CC0-1.0"
SLOT="0"
arr_install() {
local IFS=$'\n'
local cmd="${1}"
local files="${2}"
if [ -n "${files}" ]; then
echo "[F] Found following files for installation:"
echo "${files}"
local file
for file in ${files}; do
if [ -f "${file}" ]; then
echo "[I] Installing: ${file} (using: ${cmd})"
"${cmd}" "${file}"
fi
done
fi
}
src_install() {
local src_backgrounds=/usr/share/backgrounds/src_prepare
local src_share=/usr/share/src_prepare
# Wallpapers
local wallpapers="$(find . -not -path "./.git/*" | grep -i wallpaper | grep -i -E 'jpg|png')"
insinto "${src_backgrounds}"
arr_install doins "${wallpapers}"
# Logos
local logos="$(find . -not -path "./.git/*" | grep -i logo | grep -i -E 'jpg|png')"
arr_install doicon "${logos}"
# XCF sources
local xcfs="$(find . -not -path "./.git/*" -type f -name '*.xcf')"
insinto "${src_share}"
arr_install doins "${xcfs}"
# Docs / notices
local docs="$(find . -not -path './.git/*' -type f -name '*README*')"
arr_install dodoc "${docs}"
}
pkg_postinst() {
einfo "Contributions are welcome :)"
einfo "Repository: https://gitlab.com/src_prepare/artwork"
}