summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bfce6588bf292e7da3d8823bfacd44838345fa14 (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
# Maintainer: Sean Haugh <seanphaugh@gmail.com>

pkgname=python-pywal-git
_gitname=pywal
pkgver=1.3.0.r0.g63b6e35
pkgrel=1
pkgdesc='Generate and change colorschemes on the fly'
arch=('any')
url='https://github.com/dylanaraps/pywal/'
license=('MIT')
depends=('python'
         'python-setuptools'
         'imagemagick')
optdepends=('feh: set wallpaper'
            'nitrogen: set wallpaper')
provides=("python-pywal=$pkgver-$pkgrel")
conflicts=('python-pywal')
source=('git+https://github.com/dylanaraps/pywal.git')
md5sums=('SKIP')

pkgver() {
  cd "${_gitname}"
  git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

package() {
  cd "${_gitname}"
  python setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1
  install -Dm644 "$srcdir/${_gitname}/LICENSE.md" \
                 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et: