blob: 56d260f95f75cac170f0b9189d12490e64b20ce9 (
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
32
|
# Maintainer: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
pkgname="adb-wifi"
pkgver=0.1.2
pkgrel=2
pkgdesc="A CLI tool which shows QR code and makes seamless connection to the ADB bridge"
arch=('any')
url="https://github.com/saleehk/${pkgname}"
license=('ISC')
makedepends=('npm')
depends=('adb' 'nodejs')
_pkgsrc="${pkgname}-${pkgver}"
source=("${_pkgsrc}.tar.gz::https://registry.npmjs.org/${pkgname}/-/${_pkgsrc}.tgz")
noextract=("${_pkgsrc}.tar.gz")
sha256sums=('7e96f443a6a4eb39bd5881beb9476c0c0f4d19759935131fe56d79d67a44e43a')
package() {
cd "${srcdir}"
npm install --cache "${srcdir}/npm-cache" -g --prefix "${pkgdir}/usr" "${srcdir}/${_pkgsrc}.tar.gz"
# Non-deterministic race in npm gives 777 permissions to random directories
# See https://github.com/npm/npm/issues/9359 for details.
chmod -R u=rwX,go=rX "${pkgdir}"
# npm installs package.json owned by build user
# https://bugs.archlinux.org/task/63396
chown -R root:root "${pkgdir}"
install -vd "${pkgdir}/usr/share/doc/${pkgname}"
cd "${pkgdir}/usr/share/doc/${pkgname}"
ln -vs "/usr/lib/node_modules/${pkgname}/readme.md" "README.md"
}
|