summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2326985f39b21bb44afbb9f4223e65739f9448a2 (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
# Maintainer: Paulo Diovani <paulo@diovani.com>

pkgname=torrentflix
pkgver=9.0.5
pkgrel=4
pkgdesc="Nodejs cli app to search torrent sites and stream using peerflix"
arch=('any')
url="https://www.npmjs.com/package/torrentflix"
license=('MIT')
depends=('nodejs' 'peerflix')
makedepends=('npm')
options=(!emptydirs)
source=("https://github.com/ItzBlitz98/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('1177f745035ff7a8a8b84d2e2e924199dbe08c0057376d1689b0ac1b9c149d4c')

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  install -Dm644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
  npm install --cache ../cache --user root -g --production --prefix "${pkgdir}/usr" "../v${pkgver}.tar.gz"

  # npm makes some directories world writable
  find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
}

# vim:set ts=2 sw=2 et: