summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 16a16d12f8eb2b41524b5a66c22d3e6a98172e1a (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.01.13
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"
}