SHARE
TWEET

Sabaki 0.31.3 PKGBUILD

beejjorgensen Sep 22nd, 2017 (edited) 393 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Contributor: Adrian Petrescu <apetresc@gmail.com>
  2. # Maintainer: Adrian Petrescu <apetresc@gmail.com>
  3.  
  4. pkgname=sabaki
  5. pkgver=0.31.3
  6. pkgrel=1
  7. pkgdesc='An elegant SGF editor for the game of Go'
  8. arch=('any')
  9. url='http://sabaki.yichuanshen.de/'
  10. license=('MIT')
  11. makedepends=('npm')
  12. install=${pkgname}.install
  13. source=("https://github.com/yishn/Sabaki/archive/v${pkgver}.tar.gz"
  14.         "${pkgname}.desktop"
  15.         'sabaki.xml')
  16. md5sums=('cf374e056f2763585821c9535eef9f61'
  17.          'b39f3b91292cb3983124bd38035fbd8e'
  18.          'efbd547e892c7781a5ece702d389dd9e')
  19.  
  20. prepare() {
  21.     # Hackishly revert electron from ^1.8.0 to 1.7.7
  22.     # This should only be necessary until the next Sabaki release
  23.     sed -i 's/electron\(.*\)\^1\.8\.0/electron\11.7.7/' \
  24.         "${srcdir}/Sabaki-${pkgver}/package.json"
  25. }
  26.  
  27. build() {
  28.     cd $srcdir/Sabaki-$pkgver
  29.  
  30.   npm install --cache "${srcdir}/npm-cache"
  31.   npm run build
  32. }
  33.  
  34. check() {
  35.   cd $srcdir/Sabaki-$pkgver
  36.   npm test
  37. }
  38.  
  39. package() {
  40.   mkdir $pkgdir/opt
  41.  
  42.   cp -r $srcdir/Sabaki-$pkgver/dist/linux-unpacked $pkgdir/opt/Sabaki
  43.   install -Dm644 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
  44.   install -Dm644 ${srcdir}/${pkgname}.xml ${pkgdir}/usr/share/mime/packages/${pkgname}.xml
  45. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top