yochananmarqos

folderpreview-git

Nov 21st, 2020
138
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=folderpreview-git
  2. pkgver=0.3.1.r0.gba6c8ce
  3. pkgrel=1
  4. pkgdesc="Generates folder thumbs using child files thumbs"
  5. arch=('any')
  6. url="https://gitlab.com/hxss-linux/folderpreview"
  7. license=('MIT')
  8. depends=('python-dbus-next' 'python-systemd-mosquito' 'python-pyxdg' 'python-yaml'
  9.          'python-gobject' 'python-pyvips' 'python-parse' 'python-colorlog')
  10. makedepends=('python-setuptools')
  11. provides=("${pkgname%-git}")
  12. conflicts=("${pkgname%-git}")
  13. source=('git+https://gitlab.com/hxss-linux/folderpreview.git')
  14. md5sums=('SKIP')
  15.  
  16. pkgver() {
  17.     cd "$srcdir/${pkgname%-git}"
  18.     git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
  19. }
  20.  
  21. build() {
  22.     cd "$srcdir/${pkgname%-git}"
  23.     python setup.py build
  24. }
  25.  
  26. package() {
  27.     cd "$srcdir/${pkgname%-git}"
  28.     export PYTHONHASHSEED=0
  29.     python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  30.  
  31.     install -Dm644 folderpreview.thumbnailer -t "$pkgdir/usr/share/thumbnailers"
  32.     install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
  33. }
RAW Paste Data