yochananmarqos

Untitled

Aug 18th, 2020 (edited)
151
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=pywal-git
  2. pkgver=3.3.0.r116.g919ea75
  3. pkgrel=1
  4. pkgdesc="Generate and change color-schemes on the fly."
  5. arch=('any')
  6. url="https://github.com/dylanaraps/pywal"
  7. license=('MIT')
  8. depends=('python' 'imagemagick')
  9. makedepends=('python-setuptools')
  10. optdepends=('feh: set wallpaper'
  11.             'nitrogen: set wallpaper'
  12.             'python2: reload gtk2 themes on the fly')
  13. provides=("${pkgname%-git}" "python-${pkgname%-git}")
  14. conflicts=("${pkgname%-git}" "python-${pkgname%-git}")
  15. source=('git+https://github.com/dylanaraps/pywal.git')
  16. sha256sums=('SKIP')
  17.  
  18. pkgver() {
  19.     cd "$srcdir/${pkgname%-git}"
  20.     git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
  21. }
  22.  
  23. build() {
  24.     cd "$srcdir/${pkgname%-git}"
  25.     python setup.py build
  26. }
  27.  
  28. check() {
  29.     cd "$srcdir/${pkgname%-git}"
  30.     python setup.py test
  31. }
  32.  
  33. package() {
  34.     cd "$srcdir/${pkgname%-git}"
  35.     python setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1 --skip-build
  36.     install -Dm644 LICENSE.md -t "$pkgdir/usr/share/licenses/${pkgname%-git}"
  37. }
RAW Paste Data