summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d9adff5fd95b9cb7ae6ca6047081a1df597e5b66 (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: Fernando Vasquez <fmorataya.04@gmail.com>

_gitname=wpgtk
pkgname="${_gitname}-git"
_gitbranch=master
_gitauthor=deviantfero # deviantfero
pkgver=r421.413248a
pkgrel=1
pkgdesc="A gui wallpaper chooser that changes your Openbox theme, GTK theme and Tint2 theme"
url="https://github.com/${_gitauthor}/${_gitname}"
license=('GPLv2')
source=("git://github.com/${_gitauthor}/${_gitname}#branch=${_gitbranch}")
sha512sums=('SKIP')
arch=('any')
depends=('python' 'python-pillow' 'python-gobject' 'gtk3' 'libxslt' 'python-pywal')
optdepends=('feh: set wallpaper'
            'nitrogen: set wallpaper'
			'xsettingsd-git: live reload GTK+ theme')
conflicts=("${_gitname}")
provides=("${_gitname}=$pkgver")

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

package() {
  cd "${srcdir}/${_gitname}"
  python setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1
  install -Dm644 "$srcdir/$_gitname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm644 "$srcdir/$_gitname/$_gitname/misc/wpg.conf" \
                 "usr/etc/$_gitname/wpg.conf"
  install -Dm644 "$srcdir/$_gitname/completions/bash/wpg" \
                 "usr/share/bash-completion/wpg"
  install -Dm644 "$srcdir/$_gitname/completions/zsh/_wpg" \
                 "usr/share/zsh/site-functions/_wpg"
  install -Dm644 "$srcdir/$_gitname/$_gitname/misc/wpg-install.sh" \
                 "usr/bin/wpg-install.sh"
}