blob: 2e18b857b524fac85bbc7d5ee79dbf2ede9a3f37 (
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
|
# Maintainer: Axel Navarro <navarroaxel gmail>
pkgname=webtorrent-cli
pkgver=5.1.2
pkgrel=1
pkgdesc="The streaming torrent client. For the command line."
arch=(any)
url="https://webtorrent.io"
license=(MIT)
depends=(nodejs)
makedepends=(git npm)
provides=(webtorrent)
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/webtorrent/$pkgname/archive/v$pkgver.tar.gz)
sha256sums=('1041f723de7d349c92f8d8ce8a2f2f66110dcbe398ededdc70919a70f4c51c47')
build() {
cd "$srcdir/${pkgname}-${pkgver}"
npm install --omit=dev
}
package() {
cd "$srcdir/${pkgname}-${pkgver}"
install -dm755 "${pkgdir}/usr/lib/${pkgname}"
cp -a bin node_modules package.json version.cjs "${pkgdir}/usr/lib/${pkgname}/"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -d "$pkgdir/usr/bin"
ln -s '/usr/lib/webtorrent-cli/bin/cmd.js' "$pkgdir/usr/bin/webtorrent"
}
|