summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorM0Rf302018-08-16 18:53:44 +0200
committerM0Rf302018-08-16 18:53:44 +0200
commit74bf2cd0a41de79e5091d7db8fd9406222c35f73 (patch)
tree95a4d2ed8bde0a09d178df1bb22bd7a0501a8cdc /PKGBUILD
parent7b83c3e01bff9e85d2e9c02f1bbf2688a87a9720 (diff)
downloadaur-74bf2cd0a41de79e5091d7db8fd9406222c35f73.tar.gz
peerflix-server: 0.3.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 13 insertions, 20 deletions
diff --git a/PKGBUILD b/PKGBUILD
index da19b63c462..c7b15e91a3b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: robertfoster
pkgname=peerflix-server
-pkgver=0.2.0
+pkgver=0.3.1
pkgrel=1
pkgdesc="Streaming torrent client for node.js with web ui"
arch=('i686' 'x86_64')
@@ -9,28 +9,21 @@ url="https://github.com/asapach/peerflix-server"
license=('MIT')
depends=('nodejs')
makedepends=('nodejs-grunt-cli' 'bower' 'npm')
-source=(https://github.com/asapach/peerflix-server/archive/v${pkgver}.tar.gz
- peerflix-server.sh
- peerflix-server.service)
+source=(peerflix-server.sh
+peerflix-server.service)
conflicts=('peerflix-server-git')
options=('!strip')
-build() {
- cd $srcdir/$pkgname-$pkgver
- npm install
- bower install
- grunt build
-}
-
package(){
- cd $srcdir/$pkgname-$pkgver
+ cd $srcdir
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p $_npmdir
+ cd $_npmdir
+ npm install -g --prefix "$pkgdir/usr" --ignore-scripts --production peerflix-server@$pkgver
- mkdir -p $pkgdir/opt/peerflix-server
- cp -r dist server node_modules LICENSE $pkgdir/opt/peerflix-server/
- install -Dm644 "${srcdir}/peerflix-server.service" "${pkgdir}/usr/lib/systemd/system/peerflix-server.service"
- install -Dm775 "${srcdir}/peerflix-server.sh" "${pkgdir}/usr/bin/peerflix-server"
-}
+ install -Dm644 "${srcdir}/peerflix-server.service" "${pkgdir}/usr/lib/systemd/system/peerflix-server.service"
+ install -Dm775 "${srcdir}/peerflix-server.sh" "${pkgdir}/usr/bin/peerflix-server"
+}
-md5sums=('f4c27f1c360423f5ad569e62e01482bb'
- 'ee5ad551f86380d0a353b5220ab58159'
- 'f22faa77f2d6049eee5d1a91140a25cc')
+md5sums=('ea9702820f92bef0636a4f01d13dd348'
+'8eb4184190cd66435c3bda2435982422')