new package: adwaita-icon-theme-legacy

borrowed from Debian.
This commit is contained in:
Tee KOBAYASHI 2022-11-10 08:08:41 +09:00 committed by xtkoba
parent fedb3f0b29
commit e994c1e2f0
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,25 @@
TERMUX_PKG_HOMEPAGE=https://packages.debian.org/sid/adwaita-icon-theme
TERMUX_PKG_DESCRIPTION="Legacy icons for adwaita-icon-theme"
TERMUX_PKG_LICENSE="LGPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=43
_DEBIAN_REVISION=1
TERMUX_PKG_SRCURL=(https://deb.debian.org/debian/pool/main/a/adwaita-icon-theme/adwaita-icon-theme_${TERMUX_PKG_VERSION}.orig-41.tar.xz
https://deb.debian.org/debian/pool/main/a/adwaita-icon-theme/adwaita-icon-theme_${TERMUX_PKG_VERSION}-${_DEBIAN_REVISION}.debian.tar.xz)
TERMUX_PKG_SHA256=(ef5339d8c35fcad5d10481b70480803f0fa20b3d3cbc339238fcaceeaee01eba
fd0027aaec8b6aa8561eda51d82e3b634c1bfe668e233692afa8ffc66a4170bb)
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_DEPENDS="adwaita-icon-theme"
termux_step_pre_configure() {
DESTDIR=$TERMUX_PKG_BUILDDIR/_destdir
TERMUX_PKG_EXTRA_MAKE_ARGS+=" DESTDIR=$DESTDIR"
}
termux_step_post_make_install() {
python3 $TERMUX_PKG_SRCDIR/debian/move-subset.py \
--icon-names-from-file=$TERMUX_PKG_SRCDIR/debian/legacy-icons-41.txt \
--icon-names-from-file=$TERMUX_PKG_SRCDIR/debian/removed-icons-41.txt \
$DESTDIR/$TERMUX_PREFIX \
$TERMUX_PREFIX
}

View File

@ -0,0 +1,20 @@
--- a/debian/move-subset.py
+++ b/debian/move-subset.py
@@ -40,7 +40,7 @@
for ext in EXTS:
wanted[name + ext] = name
- for dirpath, dirnames, filenames in os.walk(dest / 'usr/share/icons'):
+ for dirpath, dirnames, filenames in os.walk(dest / 'share/icons'):
rel = Path(dirpath).relative_to(dest)
if 'cursors' in dirnames:
@@ -51,7 +51,7 @@
# remove -rtl or -symbolic
already_have[Path(Path(name).stem).stem] = rel / name
- for dirpath, dirnames, filenames in os.walk(source / 'usr/share/icons'):
+ for dirpath, dirnames, filenames in os.walk(source / 'share/icons'):
rel = Path(dirpath).relative_to(source)
for name in filenames: