summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1dd6148fbc4291d3fce37e6499a0dbb8dc1bcb22 (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
# Maintainer: jasonwryan <jasonwryan@gmail.com>

pkgname=nodejs-airfile-git
_name=airfile
pkgver=2019.10.23
pkgrel=1
pkgdesc="Transfer files from android to your local machine"
arch=('any')
url="https://github.com/noffle/${_name}"
depends=('nodejs')
makedepends=('npm' 'git')
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
license=('ISC')
source=("${_name}::git+${url}")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_name}"
  git log -1 --format="%cd" --date=short | sed 's/-/./g'
}

package() {
  cd "${srcdir}/${_name}"
  npm install -g --prefix "$pkgdir/usr" "${source[@]##*/}"
  find "${pkgdir}"/usr -type d -exec chmod 755 {} +
  install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$_name/LICENSE"
}