# Maintainer: E-Hern Lee # Contributor: Jake # Contributor: Mohammadreza Abdollahzadeh # Contributor: Josia Roßkopf # Contributor: Jonas Heinrich # Contributor: Yen Chi Hsuan pkgname=nwjs-sdk-bin pkgver=0.82.0 pkgrel=1 pkgdesc="node-webkit is an app runtime based on Chromium and node.js. SDK release with DevTools" arch=("x86_64") url="https://nwjs.io/" license=("MIT") depends=("gtk3" "nss" "libxss") optdepends=( "nodejs: npm package support" "nw-gyp: native add-on build tool for node-webkit" ) provides=("nwjs-sdk") conflicts=("nwjs-sdk") source=("${pkgname}-${pkgver}.tar.gz::http://dl.nwjs.io/v${pkgver}/${pkgname%-bin}-v${pkgver}-linux-x64.tar.gz") sha512sums=('5813ccdd6886d66cb3932bd6f4426a00c5bf54189856a0f2595867730534a4ce79be498d0e201e33e8bf601956cfb189e4ec4ea4a8fca62f907ecd5cd58c94eb') package() { cd "${pkgname%-bin}-v${pkgver}-linux-x64" install -d "${pkgdir}/opt/${pkgname%-bin}" cp -dr * "${pkgdir}/opt/${pkgname%-bin}/" chmod -R 644 "${pkgdir}/opt/${pkgname%-bin}/" chmod 755 "${pkgdir}/opt/${pkgname%-bin}/"{,swiftshader,lib,locales,nw,chrome_crashpad_handler} install -d "${pkgdir}/usr/bin" ln -s "/opt/${pkgname%-bin}/nw" "${pkgdir}/usr/bin/nw-sdk" }