Skip to content

Instantly share code, notes, and snippets.

@pocke
Created December 23, 2018 18:18
Show Gist options
  • Select an option

  • Save pocke/59f7b9c54aba6b47ba1f8ab80294f31e to your computer and use it in GitHub Desktop.

Select an option

Save pocke/59f7b9c54aba6b47ba1f8ab80294f31e to your computer and use it in GitHub Desktop.
# Maintainer: Kohei Suzuki <eagletmt@gmail.com>
pkgname=bdash
pkgver=1.5.3
pkgrel=1
pkgdesc='Simple business intelligence application'
arch=('x86_64')
url='https://github.com/bdash-app/bdash'
license=('MIT')
depends=('gtk2' 'nss' 'alsa-lib' 'libxss' 'gconf' 'libxtst')
makedepends=('python2' 'python' 'npm' 'yarn')
source=("$pkgname-$pkgver.tar.gz::https://github.com/bdash-app/bdash/archive/v$pkgver.tar.gz")
build() {
cd "$pkgname-$pkgver"
yarn install --no-progress
./node_modules/.bin/webpack --env.BUILD_ENV=production
./node_modules/.bin/electron-builder build --linux
# export NODE_ENV=production
# mkdir -p out/tmp
# cp -a app db yarn.lock package.json index.js .babelrc out/tmp
# cd out/tmp
# yarn install --no-progress
# cd -
#
# node_modules/.bin/electron-rebuild -p -m out/tmp -w sqlite3
# node_modules/.bin/electron-packager out/tmp Bdash \
# --asar=true \
# --platform=linux \
# --arch=x64 \
# --app-version=$pkgver \
# --build-verison=$pkgver \
# --app-copyright=hokaccha
}
package() {
cd "$pkgname-$pkgver"
mkdir -p "$pkgdir/usr/share"
mkdir -p "$pkgdir/usr/bin"
mv dist/production/linux-unpacked "$pkgdir/usr/share/bdash"
ln -s /usr/share/bdash/bdash "$pkgdir/usr/bin/bdash"
}
# vim: set ft=sh:
md5sums=('98b4ebae95b14b7caa228a12aa600bcf')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment