diff options
author | Kohei Suzuki | 2017-02-08 01:38:23 +0900 |
---|---|---|
committer | Kohei Suzuki | 2017-02-08 01:38:23 +0900 |
commit | 13ca59cf7a7d23e1f50cf3178ce8171e783cdbe0 (patch) | |
tree | 6f592e4e395c79eb02a152d87aa47b0b09157f7a /PKGBUILD | |
download | aur-13ca59cf7a7d23e1f50cf3178ce8171e783cdbe0.tar.gz |
Add bdash v1.0.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5df767b325d8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Kohei Suzuki <eagletmt@gmail.com> +pkgname=bdash +pkgver=1.0.0 +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/$pkgver.tar.gz") +sha512sums=('376a213a787f660d842d57f4fa6e6e7e24fd60b4adaa5c5fe8897f2f2a006021255b2d597246ea955f92f94212aec1f34147b2aa29a3f1f2dc4f8941fde3605b') + +build() { + cd "$pkgname-$pkgver" + + yarn install --no-progress + + 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 \ + --icon=assets/icon.icns \ + --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 Bdash-linux-x64 "$pkgdir/usr/share/bdash" + ln -s /usr/share/bdash/Bdash "$pkgdir/usr/bin/bdash" +} + +# vim: set ft=sh: |