SHARE
TWEET

p3x-onenote

ImNtReal Feb 18th, 2019 142 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Rocka <i at Rocka dot me>
  2.  
  3. pkgname=p3x-onenote
  4. pkgver=2019.2.17_17
  5. pkgrel=1
  6. pkgdesc="Linux Electron Onenote - A Linux compatible version of OneNote"
  7. arch=('any')
  8. url="https://www.npmjs.com/package/p3x-onenote"
  9. license=('MIT')
  10. depends=('electron')
  11. makedepends=('npm')
  12.  
  13. source=("https://github.com/patrikx3/onenote/archive/v${pkgver//_/-}.tar.gz"
  14.         "p3x-onenote.desktop")
  15.  
  16. md5sums=('7f550f86dc5c6f7b69f3f641dea70f29'
  17.          'ff11d699c2aeac0caebf1a9d8533e664')
  18.  
  19. package() {
  20.     cd "${srcdir}/onenote-${pkgver//_/-}"
  21.                 npm install -g --user root --prefix "${pkgdir}/usr" "${srcdir}/v${pkgver//_/-}.tar.gz"
  22.     install -Dm644 "${srcdir}/p3x-onenote.desktop" -t "${pkgdir}/usr/share/applications/"
  23.     install -Dm644 "src/electron/images/onenote-icon.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg"
  24.     install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  25.  
  26.     install -dm775 "${pkgdir}/usr/bin"
  27.     cd "${pkgdir}/usr/bin"
  28.     ln -sf ../lib/node_modules/p3x-onenote/bin/p3x-onenote.js p3x-onenote
  29. }
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
 
Top