diff options
author | Milo Gilad | 2018-07-01 09:59:11 -0400 |
---|---|---|
committer | Milo Gilad | 2018-07-01 09:59:11 -0400 |
commit | b94f7223c4ebe2d3545f7d3ca53dcd938c8eb291 (patch) | |
tree | 841805bf66582ac48ef41aaff98d242967ade2d2 | |
download | aur-cloudconvert-cli-git.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cd5883e5c21f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = cloudconvert-cli-git + pkgdesc = Command Line Interface for CloudConvert + pkgver = 1.0.0 + pkgrel = 1 + url = https://github.com/cloudconvert/cloudconvert-cli + arch = any + license = unknown + makedepends = npm + makedepends = git + depends = nodejs + depends = coffeescript + source = git+https://github.com/cloudconvert/cloudconvert-cli.git + sha512sums = SKIP + +pkgname = cloudconvert-cli-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c9c5411e7597 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Milo Gilad <myl0gcontact@gmail.com> +pkgname=cloudconvert-cli-git +pkgver=1.0.0 +pkgrel=1 +pkgdesc='Command Line Interface for CloudConvert' +arch=('any') +url='https://github.com/cloudconvert/cloudconvert-cli' +license=('unknown') +depends=(nodejs coffeescript) +makedepends=(npm git) +source=("git+https://github.com/cloudconvert/cloudconvert-cli.git") +sha512sums=('SKIP') + +build() { + cd "${pkgname%-git}" + npm install --production +} + +package() { + local _npmdir="$pkgdir/usr/lib/node_modules" + mkdir -p "$_npmdir/${pkgname%-git}" + cp -R "${pkgname%-git}/." "$_npmdir/${pkgname%-git}" + local _bindir="$pkgdir/usr/bin" + mkdir -p "$_bindir" + ln -s "/usr/lib/node_modules/${pkgname%-git}/lib/bin.js" "$_bindir/${pkgname%-cli-git}" +} |