diff options
author | gardenapple | 2021-01-15 22:48:54 +0200 |
---|---|---|
committer | gardenapple | 2021-01-15 22:49:10 +0200 |
commit | a62ba1add68bd69e7edd06054161ebeb34ce32fb (patch) | |
tree | b544c26dcff0927204a842735e3bff5c99fcc36d | |
download | aur-a62ba1add68bd69e7edd06054161ebeb34ce32fb.tar.gz |
Add package
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 24 |
3 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9c0156e6ad5a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = neocities-cli + pkgdesc = (Official) neocities.org CLI and API client + pkgver = 0.0.15 + pkgrel = 1 + url = https://neocities.org/cli + arch = any + license = MIT + depends = ruby + depends = ruby-httpclient + depends = ruby-pastel-0.7.2 + depends = ruby-tty-table-0.10 + depends = ruby-tty-prompt-0.12 + noextract = neocities-0.0.15.gem + options = !emptydirs + source = https://rubygems.org/downloads/neocities-0.0.15.gem + sha256sums = c35714c2d6596e2f3e1d4c388696c301baab57243c24840cd0350faafc5a8823 + +pkgname = neocities-cli + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..bf34f0c52756 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +src/ +pkg/ +*.gem +*.pkg.tar.* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..59311f1c2fa5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: gardenapple <gardenapple@posteo.net> + +_gemname=neocities +pkgname=neocities-cli +pkgver=0.0.15 +pkgrel=1 +pkgdesc='(Official) neocities.org CLI and API client' +arch=('any') +url='https://neocities.org/cli' +license=('MIT') +depends=('ruby' 'ruby-httpclient' 'ruby-pastel-0.7.2' 'ruby-tty-table-0.10' 'ruby-tty-prompt-0.12') +options=(!emptydirs) +source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem) +noextract=($_gemname-$pkgver.gem) +sha256sums=('c35714c2d6596e2f3e1d4c388696c301baab57243c24840cd0350faafc5a8823') + +package() { + local _gemdir="$(ruby -e'puts Gem.default_dir')" + gem install --ignore-dependencies --no-user-install --no-document -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem + rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem" + + rm -r "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/ext" + find "$pkgdir$_gemdir/extensions/" -name "gem_make.out" -exec rm {} + +} |