summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bb1cbd550450ff59bcc9cb8d4b800bed7eda6aba (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=r29.281664c
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: for screen locking support')
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"
}