summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d5a733d64418922b1c785c0edfafe33f290dbc14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Andrés J. Díaz <ajdiaz@ajdiaz.me>
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Andrew Stubbs <andrew.stubbs@gmail.com>

_npmname=thumbsup
_npmver=2.16.0
pkgname=nodejs-thumbsup # All lowercase
pkgver=${_npmver//-/}
pkgrel=1
pkgdesc="Photo / video gallery generator"
arch=(any)
url="https://github.com/thumbsup/thumbsup#readme"
license=()
depends=('nodejs' 'npm' 'perl-image-exiftool' 'graphicsmagick')
optdepends=('ffmpeg: for video support')
makedepends=('git')
source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz)
noextract=($_npmname-$_npmver.tgz)
sha256sums=('43a16fc7cccb478e4255bc5059ec4f01ade26882ffe83f4ebb6d1480f331ba02')

package() {
  cd $srcdir
  local _npmdir="$pkgdir/usr/lib/node_modules/"
  mkdir -p $_npmdir
  cd $_npmdir
  npm update
  npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
}

# vim:set ts=2 sw=2 et: