summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 40e7aac65ed87e8ded55af347f2e2df24c67fb4e (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
# Maintainer: willemw <willemw12@gmail.com>

pkgname=daily-wallpaper-git
pkgver=r86.e2e3a12
pkgrel=1
pkgdesc="Change wallpaper automatically with the Photo of The Day of your loved source"
arch=('x86_64')
url="https://github.com/atareao/daily-wallpaper"
license=('MIT')
depends=('python-gobject' 'python-lxml' 'python-cssselect' 'python-requests' 'python-crontab' 'python-plumbum' 'gtk3' 'libnotify')
optdepends=('cron: automatic download')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
md5sums=('SKIP')

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

package() {
  cd $pkgname

  install -dm755 "$pkgdir/usr"
  cp -a bin      "$pkgdir/usr"

  install -dm755 "$pkgdir/usr/share/daily-wallpaper"
  cp -a src/*.py "$pkgdir/usr/share/daily-wallpaper"

  install -dm755    "$pkgdir/usr/share/daily-wallpaper"
  cp -a src/dailies "$pkgdir/usr/share/daily-wallpaper"

  install -dm755           "$pkgdir/usr/share/icons"
  cp -a data/icons/hicolor "$pkgdir/usr/share/icons"

  install -dm755                     "$pkgdir/usr/share/applications"
  cp -a data/daily-wallpaper.desktop "$pkgdir/usr/share/applications"
}