Compare commits

...

3 commits

Author SHA1 Message Date
Emma Nora Theuer
c0c83246e3 Update version and introduce major new build commands 2024-09-02 13:57:43 +02:00
Emma Nora Theuer
72c736e6cd Update version 2024-09-02 13:56:46 +02:00
Emma Nora Theuer
594ee118b6 Update verion number 2024-09-02 13:56:21 +02:00
3 changed files with 66 additions and 43 deletions

View file

@ -1 +1 @@
DIST wallman-1.3.3.2.tar.gz 8091 BLAKE2B 4db021c7256769ecd6cc3c91cbfebda596e4e4f5b99b6e006a5a91a15759283fbf52e680a741035efbb6324f0357532ae78cefd509c9c56df236f05e32f52183 SHA512 5a581a0418e73a1324deaab13470285f8d131552deb00503bf43d4fc1fae1d85e9c59a9e1b7dff980677923ae1b5933dc3becb1bf163ebbc0f81ff767cb36675 DIST wallman-1.4.2.1.tar.gz 862745 BLAKE2B 47c54bce3d783a3865ef1cec48a0905a1ad31412baed25db526b5febedc7ba37c553cc44468c7e94e8782d58d49b210aaf0a1176ad488e9053838b48f2e0f10e SHA512 ccca96a588879c8609944a331d7b35b5f5c049e139f671cc2ad97c17e4b957e902787050483798fbd935ae09e31ce2ea3bdc450d78de5c21a061ced1f88d15d7

View file

@ -1,42 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the MIT License
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11,12} )
inherit distutils-r1 pypi
DESCRIPTION="A python program that sets dynamic wallpapers on minimalistic Window Managers."
HOMEPAGE="https://git.entheuer.de/emma/wallman/"
SRC_URI="$(pypi_sdist_url "${PN^}" "${PV}")"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
dev-python/APScheduler[${PYTHON_USEDEP}]
media-gfx/feh
x11-libs/libnotify
"
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
"
python_prepare_all() {
distutils-r1_python_prepare_all
}
python_compile() {
distutils-r1_python_compile -j1
}
python_install() {
distutils-r1_python_install
# Add a symlink to make the scrupt callable from the commandline
local scriptname="wallman.py"
local target="/usr/bin/wallman"
local scriptpath="$(python_get_sitedir)/${scriptname}"
fperms +x "${scriptpath}"
dosym "$(python_get_sitedir)/${scriptname}" "${target}"
}

View file

@ -0,0 +1,65 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the MIT License
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11,12} )
inherit distutils-r1 pypi
DESCRIPTION="A python program that sets dynamic wallpapers on minimalistic Window Managers."
HOMEPAGE="https://git.entheuer.de/emma/wallman/"
SRC_URI="$(pypi_sdist_url "${PN^}" "${PV}")"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
dev-python/APScheduler[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
media-gfx/feh
x11-libs/libnotify
"
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
dev-python/wheel[${PYTHON_USEDEP}]
dev-python/certifi[${PYTHON_USEDEP}]
"
python_prepare_all() {
distutils-r1_python_prepare_all
}
python_compile() {
distutils-r1_python_compile -j1
}
python_install() {
distutils-r1_python_install
# Add a symlink to make the script callable from the commandline
local scriptname="wallman.py"
local target="/usr/bin/wallman"
local scriptpath="$(python_get_sitedir)/${scriptname}"
fperms +x "${scriptpath}"
dosym "$(python_get_sitedir)/${scriptname}" "${target}"
}
src_install() {
# Copy files into /etc/wallman
dodir /etc/wallman
insinto /etc/wallman
newins "${S}/sample_config.toml" "wallman.toml"
doins -r "${S}/icons/" "icons/"
# Create logfile directory
dodir /var/log/wallman
keepdir /var/log/wallman
fperms 0733 /var/log/wallman
# Copy .desktop file into the appropriate location
insinto /usr/share/applications
newins "${S}/distfiles/wallman.desktop" "wallman.desktop"
}
pkg_postinst() {
elog "Wallman has been installed. A sample configuration file called wallman.toml is located in /etc/wallman. Copy that file into ~/.config/wallman/wallman.toml to configure wallman."
elog "A log file for Wallman can be found in /etc/log/wallman"
}