From ceff5976ad8487a4f8cb499d5872d7fd824f294e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=A5=D1=80?= =?UTF-8?q?=D0=B0=D0=BC=D0=BE=D0=B2?= Date: Mon, 15 Dec 2025 21:20:40 +0300 Subject: [PATCH] python3-icoextract 0.2.0-1 --- python3-icoextract/alr.sh | 50 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 python3-icoextract/alr.sh diff --git a/python3-icoextract/alr.sh b/python3-icoextract/alr.sh new file mode 100644 index 0000000..4187563 --- /dev/null +++ b/python3-icoextract/alr.sh @@ -0,0 +1,50 @@ +name='python3-icoextract' +version='0.2.0' +release='1' +desc='Windows PE EXE icon extractor' +desc_ru='Извлечение иконок из Windows PE EXE файлов' +homepage='https://github.com/jlu5/icoextract' +maintainer='Evgeny Khramov ' +maintainer_ru='Евгений Храмов ' +architectures=('all') +license=('MIT') +provides=('icoextract') +conflicts=('icoextract') + +deps=('python3' 'python3-pefile') +deps_alt=('python3' 'python3-module-pefile') +deps_arch=('python' 'python-pefile') +deps_debian=('python3' 'python3-pefile') +deps_fedora=("${deps[@]}") +deps_redos=("${deps[@]}") +deps_rhel=("${deps[@]}") +deps_rosa=("${deps[@]}") +deps_alpine=('python3' 'py3-pefile') + +build_deps=('python3' 'python3-build' 'python3-installer' 'python3-setuptools') +build_deps_alt=('python3' 'python3-module-build' 'python3-module-installer' 'python3-module-setuptools') +build_deps_arch=('python' 'python-build' 'python-installer' 'python-setuptools') +build_deps_debian=('python3' 'python3-build' 'python3-installer' 'python3-setuptools') +build_deps_fedora=("${build_deps[@]}") +build_deps_redos=("${build_deps[@]}") +build_deps_rhel=("${build_deps[@]}") +build_deps_rosa=("${build_deps[@]}") +build_deps_alpine=('python3' 'py3-build' 'py3-installer' 'py3-setuptools') + +sources=("https://files.pythonhosted.org/packages/source/i/icoextract/icoextract-${version}.tar.gz") +checksums=('SKIP') + +build() { + cd "$srcdir/icoextract-${version}" + python -m build --wheel --no-isolation +} + +package() { + cd "$srcdir/icoextract-${version}" + python -m installer --destdir="$pkgdir" --prefix=/usr dist/*.whl +} + +files() { + files-find-bin + files-find-lib +}