blob: f9f3bd6f5daff897363153228da683698d75119c (
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
|
# Maintainer: Kevin Brodsky <corax26 'at' gmail 'dot' com>
pkgname=upload-gphotos
pkgver=4.2.1
pkgrel=1
pkgdesc='Upload photos to Google Photos (Unofficial)'
arch=('any')
url='https://github.com/3846masa/upload-gphotos'
license=('MIT')
depends=(nodejs)
makedepends=(npm)
optdepends=('google-chrome: either Chrome or Chromium is required'
'chromium: either Chrome or Chromium is required')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
md5sums=('8053476cca431f35fdae04e7ff1ab9aa')
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"
}
|