39 lines
1.3 KiB
Bash
39 lines
1.3 KiB
Bash
|
# Maintainer: Emma Nora Theuer <wallman@entheuer.de>
|
||
|
|
||
|
pkgname=wallman
|
||
|
pkgver=1.5.0.0
|
||
|
pkgrel=1
|
||
|
pkgdesc="A simple program to set dynamic wallpapers on standalone X11 window managers and wayland compositors"
|
||
|
arch=('any')
|
||
|
url="https://git.entheuer.de/emma/wallman"
|
||
|
license=('MIT')
|
||
|
depends=('feh' 'python' 'python-apscheduler' 'python-pillow' 'python-pystray')
|
||
|
makedepends=('python-build' 'python-setuptools' 'python-wheel' 'python-installer')
|
||
|
provides=("$pkgname=$pkgver")
|
||
|
source=("https://files.pythonhosted.org/packages/9f/dd/0fadf37c5dbd1bb686afbcbe77760dfe0765520f7f4dbe67c442238ef62b/wallman-$pkgver.tar.gz")
|
||
|
b2sums=('ddb067ca50f8e2e02e82e94d48126f69a1fcc22e11ca330d25c807284f0771754d84cf45c249d953c201533d3532d80925c348f8b0946c5efe0643738433cbc3')
|
||
|
|
||
|
build(){
|
||
|
cd "$pkgname-$pkgver"
|
||
|
python -m build --wheel --no-isolation
|
||
|
}
|
||
|
|
||
|
package(){
|
||
|
cd "$pkgname-$pkgver"
|
||
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
||
|
|
||
|
# Copy LICENSE
|
||
|
install -D -m 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
|
||
|
|
||
|
# Copy Icons
|
||
|
install -d -m 755 "$pkgdir/etc/$pkgname/icons"
|
||
|
cp -r icons/* "$pkgdir/etc/$pkgname/icons/"
|
||
|
|
||
|
# Copy sample config
|
||
|
install -D -m 644 sample_config.toml -t "$pkgdir/etc/$pkgname/"
|
||
|
|
||
|
# Create logfile
|
||
|
install -d -m 733 "$pkgdir/var/log/$pkgname"
|
||
|
touch "$pkgdir/var/log/$pkgname/$pkgname.log"
|
||
|
}
|