summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7e060a2e179dec235b458630b929023d3723953e (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
31
32
pkgname="nodejs-vinefeed-git"
pkgver=0.1.0.r12
pkgrel=1
pkgdesc="RSS/Atom feed generator for Vine users"
arch=(any)
url="http://github.com/tremby/vinefeed"
license=('GPL')
depends=('nodejs' 'npm' 'coffee-script')
optdepends=()

makedepends+=('git')
source+=("${_gitname:=${pkgname%-git}}::${_giturl:-git+$url}")
for integ in $(get_integlist)
do
  typeset -n array="${integ}sums"
  array+=('SKIP')
done
provides+=("$_gitname=$pkgver")
conflicts+=("$_gitname")

pkgver() {
  cd "$_gitname"
  grep -Po '(?<="version": ").*(?=")' package.json | tr '\n' '.'
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$_gitname"
  npm pack
  npm install -g --prefix "$pkgdir/usr" --production ${_gitname#*-}-*.tgz
  install -Dm644 -t "$pkgdir/usr/lib/systemd/user/" *.{service,socket}
}