blob: da0c0db08a969d72e51d40fc4880538f5e96cc73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: Étienne Deparis <etienne@depar.is>
pkgname=chwall-git
_gitname=chwall
pkgver=v0.7.1.dev.46b81a4
pkgrel=1
pkgdesc="A tiny wallpaper changer, written in python"
arch=("any")
url="https://git.umaneti.net/chwall/about/"
license=("LicenseRef-WTFPL")
depends=("gdk-pixbuf2" "gobject-introspection-runtime" "gtk3"
"hicolor-icon-theme" "procps-ng" "python" "python-cssselect"
"python-gobject" "python-importlib-metadata" "python-lxml"
"python-pillow" "python-pyxdg" "python-requests" "python-yaml")
makedepends=("git" "imagemagick" "python-build" "python-installer"
"python-setuptools" "python-wheel")
optdepends=("feh: to apply wallpaper on independant desktop manager"
"imagemagick: to extract wallpaper size when using feh"
"libappindicator-gtk3: to display a tray icon"
"libnotify: to send notification when wallpaper change"
"xorg-xrandr: to extract screen config when using feh")
conflicts=("chwall")
source=("git+https://git.umaneti.net/${_gitname}/")
md5sums=("SKIP")
options=(!debug)
prepare() {
cd "${_gitname}"
# Determine which is the last branch
devbranch=$(git branch --sort=-committerdate --format "%(refname:short)" --list --remotes "origin/v*-dev" | head -n1)
git checkout "${devbranch#origin/}"
}
pkgver() {
cd "${_gitname}"
hash=$(git show --format="%h" -s)
branch=$(git branch --show-current | sed "s/\([^-]*-g\)/r\1/;s/-/./g")
echo "$branch.$hash"
}
check() {
cd "${_gitname}"
make test
}
package() {
cd "${_gitname}"
make package DESTDIR="$pkgdir" CHWALL_NATIVE_PATH=yes
cd "$pkgdir/usr/share/licenses"
mv chwall chwall-git
}
|