daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Mar 31st, 2017 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Pieter Goetschalckx <3.14.e.ter <at> gmail <dot> com>
  2.  
  3. pkgname=webtorrent-desktop
  4. pkgver=0.18.0
  5. pkgrel=1
  6. pkgdesc="Streaming torrent client."
  7. arch=('i686' 'x86_64')
  8. url="https://webtorrent.io/desktop"
  9. license=('MIT')
  10. depends=('gconf' 'electron')
  11. makedepends=('npm' 'git' 'zip')
  12. conflicts=('webtorrent-desktop-git' 'webtorrent-desktop-bin')
  13. source=("https://github.com/feross/${pkgname}/archive/v${pkgver}.tar.gz"
  14.         "${pkgname}.desktop")
  15. sha256sums=('25b92aab9cc6d076715a12bdaeae950f6885da19d87948a6acf007ba246b9494'
  16.             '4eba7b17fd0cd90f77fc1a1005f74d8fcd93dac4f669d1b1abbf71734b5bafa6')
  17.  
  18. [ "$CARCH" = "i686" ]   && _platform=ia32
  19. [ "$CARCH" = "x86_64" ] && _platform=x64
  20.  
  21. build() {
  22.   cd "$pkgname-$pkgver"
  23.  
  24.   npm install
  25.   npm run package -- linux --package=zip
  26. }
  27.  
  28. package() {
  29.   cd "$pkgname-$pkgver/dist"
  30.  
  31.   install -dm755 "${pkgdir}/usr/share"
  32.   install -dm755 "${pkgdir}/usr/bin"
  33.  
  34.   cp -a "WebTorrent-linux-${_platform}" "${pkgdir}/usr/share/${pkgname}"
  35.   ln -s "/usr/share/${pkgname}/WebTorrent" "${pkgdir}/usr/bin/${pkgname}"
  36.  
  37.   install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
  38.   install -Dm644 "${srcdir}/$pkgname-$pkgver/static/WebTorrent.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/${pkgname}.png"
  39.  
  40.   install -Dm644 "WebTorrent-linux-${_platform}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  41. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand