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 | |
download | aur-0fffc1f23a24c0fd3303f3044c3e18054efe5542.tar.gz |
Initial commit: upload-gphotos 3.0.5
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9f9585604482 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = upload-gphotos + pkgdesc = Upload photos to Google Photos (Unofficial) + pkgver = 3.0.5 + pkgrel = 1 + url = https://github.com/3846masa/upload-gphotos + arch = any + license = MIT + makedepends = npm + depends = nodejs + depends = google-chrome + source = upload-gphotos-3.0.5.tar.gz::https://github.com/3846masa/upload-gphotos/archive/v3.0.5.tar.gz + md5sums = 521ded74605751bf07be84fefc98014e + +pkgname = upload-gphotos + 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" +} + |