summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorKarlfiabeschi2018-05-02 22:20:50 +0200
committerKarlfiabeschi2018-05-02 22:20:50 +0200
commitd8f6a5af55bd051520fd29ad01ad900fced42acf (patch)
tree19ba1075061122151347f44c3ccc9cb690fbc826 /PKGBUILD
downloadaur-d8f6a5af55bd051520fd29ad01ad900fced42acf.tar.gz
v0.34
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8c32b31c8c2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: KarlFiabeschi 1984itsnow[at]gmail[dot]com
+
+_npmname=soccer-go
+pkgname=nodejs-soccer-go
+pkgver=0.3.4
+pkgrel=1
+pkgdesc="soccer-go is a node command line application to gather soccer stats and results"
+arch=('any')
+url="https://github.com/acifani/soccer-go"
+license=(MIT)
+depends=('nodejs')
+makedepends=('npm')
+source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
+noextract=($_npmname-$pkgver.tgz)
+sha256sums=(c1f534aaf0bff0388a042af4a2b352b2833ec46117cc6657a95fd5bade006ae9)
+
+package() {
+ cd $srcdir
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p $_npmdir
+ cd $_npmdir
+ npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
+
+ # fix perms
+ chmod 755 ${pkgbuild}/usr/bin
+ find ${pkgdir}/usr/lib/node_modules/ -type d -exec chmod 755 {} +
+}