diff options
author | Kevin Brodsky | 2019-05-28 22:11:50 +0100 |
---|---|---|
committer | Kevin Brodsky | 2019-05-28 22:11:50 +0100 |
commit | 0fffc1f23a24c0fd3303f3044c3e18054efe5542 (patch) | |
tree | f456f2fb92f8ad1a8a087b637572e5af081a558e /PKGBUILD | |
download | aur-0fffc1f23a24c0fd3303f3044c3e18054efe5542.tar.gz |
Initial commit: upload-gphotos 3.0.5
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..602cbfca728c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Kevin Brodsky <corax26 'at' gmail 'dot' com> + +pkgname=upload-gphotos +pkgver=3.0.5 +pkgrel=1 +pkgdesc='Upload photos to Google Photos (Unofficial)' +arch=('any') +url='https://github.com/3846masa/upload-gphotos' +license=('MIT') +depends=(nodejs google-chrome) +makedepends=(npm) +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +md5sums=('521ded74605751bf07be84fefc98014e') + +build() { + cd "${pkgname}-${pkgver}" + npm install -g $pkgname --prefix="$srcdir/usr" --production +} + +package() { + cd "${pkgname}-${pkgver}" + cp -r "${srcdir}/usr" "${pkgdir}" + + install -Dm644 "$srcdir/usr/lib/node_modules/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + |