summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorM0Rf302015-06-17 16:05:28 +0200
committerM0Rf302015-06-17 16:05:28 +0200
commite7e31376265266a7c4c3e793ddcb8047fdb96f21 (patch)
tree64fae3dcd22ecc355d066bedfc3c2fcb70c625f5 /PKGBUILD
downloadaur-e7e31376265266a7c4c3e793ddcb8047fdb96f21.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e6d13adc4f1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+#Maintainer: M0Rf30
+
+pkgname=peerflix-server
+pkgver=0.0.21
+pkgrel=1
+pkgdesc="Streaming torrent client for node.js with web ui"
+arch=('i686' 'x86_64')
+url="https://github.com/asapach/peerflix-server"
+license=('MIT')
+depends=('nodejs')
+makedepends=('nodejs-grunt-cli' 'nodejs-bower')
+source=(https://github.com/asapach/peerflix-server/archive/v${pkgver}.tar.gz
+ peerflix-server.sh
+ peerflix-server.service)
+conflicts=('peerflix-server-git')
+options=('!strip')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ npm cache clean
+ npm install
+ npm install imagemin-gifsicle imagemin-jpegtran imagemin-optipng imagemin-pngquant
+ bower install
+ grunt build
+}
+
+package(){
+ cd $srcdir/$pkgname-$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"
+}
+
+md5sums=('c106e9764cb44865cfe2dbb9a10b4e24'
+ 'ee5ad551f86380d0a353b5220ab58159'
+ 'f22faa77f2d6049eee5d1a91140a25cc')