Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

mylar-git.PKGBUILD

By: Melon_Bread on Jul 31st, 2014  |  syntax: Bash  |  size: 1.47 KB  |  views: 187  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Crass00 <crass00 at hotmail dot com>
  2. # Edited PKGBUILD: Melon_Bread 7-31-14
  3.  
  4. pkgname=mylar-git
  5. pkgver=355.250630a
  6. pkgrel=1
  7. pkgdesc="An automated Comic Book (cbr/cbz) downloader"
  8. arch=(any)
  9. url="https://github.com/evilhero/mylar"
  10. license=(GPL3)
  11. depends=(python2 python2-cheetah)
  12. makedepends=(git)
  13. optdepends=('sabnzbd: NZB downloader')
  14. install=mylar.install
  15. backup=('etc/conf.d/mylar')
  16. conflicts=(mylar)
  17. source=("$pkgname::git://github.com/evilhero/mylar.git"
  18.         'mylar-system.service' 'mylar-user.service' 'mylar.tmpfile')
  19. md5sums=('SKIP'
  20.          '622dbdedab0737785f614faa6939f2a8'
  21.          '3c12fdda3a34ae8927ab31785f57ffb6'
  22.          'b6d33b931e1dd7099f5ddab3a1ee8c13')
  23.  
  24. pkgver() {
  25.   cd "$srcdir"/$pkgname
  26.   echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
  27. }
  28.  
  29.  
  30. package() {
  31.   mkdir -p "$pkgdir"/opt/mylar
  32.   mkdir -p "$pkgdir"/opt/mylar/cache
  33.   cp -r "$srcdir"/$pkgname/* "$pkgdir"/opt/mylar
  34.   chmod 775 "$pkgdir/opt/mylar"
  35.  
  36.   sed -i 's/python/python2/g' "$pkgdir"/opt/mylar/post-processing/sabnzbd/ComicRN.py
  37.   sed -i 's/python/python2/g' "$pkgdir"/opt/mylar/post-processing/autoProcessComics.py
  38.  
  39.   install -D -m644 "$srcdir"/mylar-system.service "$pkgdir"/usr/lib/systemd/system/mylar.service
  40.   install -D -m644 "$srcdir"/mylar-user.service "$pkgdir"/usr/lib/systemd/user/mylar.service
  41.   install -D -m644 "$srcdir"/mylar.tmpfile "$pkgdir"/usr/lib/tmpfiles.d/mylar.conf
  42.  
  43.   find "$pkgdir" -type d -name '.git' -exec rm -r '{}' +
  44. }