blob: 35f7b279fea775ca26d66280901d080a02325118 (
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
33
34
|
# Maintainer: Marco Pompili <aur@mg.odd.red>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>
_npmname=ungit
_npmver=1.5.26
pkgname=nodejs-ungit
pkgver=1.5.26
pkgrel=1
pkgdesc="Git made easy"
arch=('i686' 'x86_64')
depends=('nodejs')
makedepends=('npm')
url="https://www.npmjs.com/package/ungit"
license=('MIT')
provides=('nodejs-ungit' 'ungit')
conflicts=('ungit')
options=('!emptydirs' '!strip')
source=("${pkgname}-${pkgver}.tgz::https://registry.npmjs.org/ungit/-/ungit-${pkgver}.tgz")
sha512sums=('cddb41ccca663086a70ad0de5fc5e8a3b99cde6e864d5883b73d23b448132efaf682bb20d4e5bde7d340f1aa917d71549363cc283688afea8f1c070dad6fafb3')
package() {
cd ${srcdir}
local _npmdir="${pkgdir}/usr/lib/node_modules/"
mkdir -p ${_npmdir}
cd ${_npmdir}
npm install -g --prefix "${pkgdir}/usr" ${_npmname}@${_npmver}
msg2 'Renaming binary from 0ungit-credentials-helper to ungit-credentials-helper'
mv "${pkgdir}/usr/bin/0ungit-credentials-helper" "${pkgdir}/usr/bin/ungit-credentials-helper"
# fixing perms
chmod 755 ${pkgdir}/usr/bin/
chmod -R 755 ${pkgdir}/usr/lib/node_modules/
}
|