summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1698a8d2e0c10d30774c1ffc30a2760886b977a8 (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
# Maintainer: Blazej Sewera <blazejok1[at]wp.pl>

pkgname=wallsch-git
_pkgname=wallsch
pkgver=r34.8009609
pkgrel=1
pkgdesc="A simple wallpaper changer/scheduler with night/day split"
arch=('any')
url='https://github.com/jazzsewera/wallsch'
source=('git+https://github.com/jazzsewera/wallsch.git')
license=('custom:MPL2')
makedepends=('python-setuptools')
depends=('python' 'python-apscheduler' 'python-tzlocal' 'python-pyro' 'python-suntime' 'nitrogen')
optdepends=('i3lock-color: for screen locking support (not compatible with i3lock)')
sha256sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${_pkgname}"
  python3 setup.py build
}

package() {
  cd "${_pkgname}"
  python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
  install -Dm755 ./scripts/lockscreen "${pkgdir}/usr/bin"
  install -Dm755 ./scripts/set-wallpaper "${pkgdir}/usr/bin"
}