# Maintainer: Yen Chi Hsuan _pkgname=nwjs pkgname=$_pkgname-bin pkgver=0.20.0 pkgrel=1 pkgdesc="node-webkit is an app runtime based on Chromium and node.js." arch=("i686" "x86_64") url="https://github.com/nwjs/nw.js" license=("MIT") depends=("alsa-lib" "gconf" "gtk2" "nss" "ttf-font" "libxtst" "libxss") optdepends=( "nodejs: npm package support" "nw-gyp: native add-on build tool for node-webkit" ) provides=("node-webkit" "nwjs") replaces=("node-webkit") conflicts=("node-webkit" "nwjs") if [ "$CARCH" = "i686" ]; then _arch="ia32" fi if [ "$CARCH" = "x86_64" ]; then _arch="x64" fi source_common="http://dl.nwjs.io/v$pkgver/$_pkgname-v$pkgver-linux" source_i686=("$source_common-ia32.tar.gz") source_x86_64=("$source_common-x64.tar.gz") sha512sums_i686=('24e255351a0268a427f3d34fd39dea7d02b28d8068dfa165960cca5024c6eb8521bc4d7f914800dd80eed157869e133edee3cc81be23db2fec645a19714ce723') sha512sums_x86_64=('d4b87012f9d04d236019eb48d037d83a5fb8be8d016b448ead5b5170b630d0ff3e9700024bf775f4e1626f311966f5682118321a92fc6a7eb3770fedf02a4dd4') package() { cd "$srcdir/$_pkgname-v$pkgver-linux-$_arch" install -Ddm755 "$pkgdir/opt/$_pkgname" install -Ddm755 "$pkgdir/usr/bin" chmod -R +r * chmod +x nw lib lib/lib{ffmpeg,node,nw}.so locales cp -r * "$pkgdir/opt/$_pkgname" ln -s "/opt/$_pkgname/nw" "$pkgdir/usr/bin/nw" }