Guest User

Untitled

a guest
Apr 24th, 2020
35
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Contributor: twa022 <twa022 at gmail dot com>
  2.  
  3. pkgname=superpaper
  4. pkgver=2.0.0
  5. pkgrel=3
  6. pkgdesc="Cross-platform multi monitor wallpaper manager"
  7. arch=('any')
  8. url="https://github.com/hhannine/Superpaper"
  9. license=('MIT')
  10. depends=('python-pillow' 'python-screeninfo>=0.6.1' 'python-wxpython'
  11.          'python-system_hotkey>=1.0.2+10+9541587' 'python-xpybutil' 'python-numpy')
  12. makedepends=('python-distutils-extra' 'git')
  13. #source=("${pkgname}-${pkgver}.tar.gz::https://github.com/hhannine/${pkgname^}/archive/v${pkgver}.tar.gz")
  14. #sha256sums=('f1ffbc7cdeb77474c4dfaa6ec7db66d797aa750af164f9e343860ea9ea0dbbe5')
  15. source=(
  16.     "${pkgname}::git+https://github.com/hhannine/superpaper.git#tag=v${pkgver}"
  17.     "0001-Revert-Add-optimizations-to-image-downscaling-update"
  18. )
  19. sha256sums=('SKIP' 'SKIP')
  20.  
  21. prepare() {
  22.   cd "${srcdir}/${pkgname}" #-${pkgver}"
  23.   # Revert image optimizations which bumped the Pillow dep to 7.0+
  24.   # until Arch updates the python-pillow package.
  25.   patch --forward  --strip=1 --input="../0001-Revert-Add-optimizations-to-image-downscaling-update.patch"
  26. }
  27.    
  28. package() {
  29.   cd "${srcdir}/${pkgname}" #-${pkgver}"
  30.   python setup.py install --root "${pkgdir}" --optimize=1
  31. }
RAW Paste Data