summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Finelli2018-03-28 20:34:20 -0400
committerMario Finelli2018-03-28 20:34:20 -0400
commit70196470cac3af901892d3f85e638db044f4ca59 (patch)
tree537ace645643378c3351fbd8f95986378b3441b0
parent3c3edf04e5a26389246fb86ccde623eb26efa8f3 (diff)
downloadaur-70196470cac3af901892d3f85e638db044f4ca59.tar.gz
Update makedepends
-rw-r--r--.SRCINFO6
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD21
3 files changed, 24 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 734e4f5efcd..dafb9dddbd4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,17 @@
pkgbase = ruby-coderay
pkgdesc = Fast syntax highlighting for selected languages.
pkgver = 1.1.2
- pkgrel = 1
+ pkgrel = 2
url = http://coderay.rubychan.de
arch = any
license = MIT
+ makedepends = rubygems
+ makedepends = ruby-rdoc
depends = ruby
noextract = coderay-1.1.2.gem
options = !emptydirs
source = https://rubygems.org/downloads/coderay-1.1.2.gem
- sha512sums = bd25c0091a271048165af33f60ab846cb623a0da68e5540d98ea2b1c6bdf3348811d98519e537435c9a5515e751ce5975a02adccec9ef225f042a27c43009e63
+ sha256sums = 9efc1b3663fa561ccffada890bd1eec3a5466808ebc711ab1c5d300617d96a97
pkgname = ruby-coderay
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..f71c635dafd
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!PKGBUILD
+!.SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
index 0d607bf8f40..4aae0e421c8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,33 @@
-# Generated by gem2arch (https://github.com/anatol/gem2arch)
-# Maintainer: Artem Vorotnikov <artem@vorotnikov.me>
+# Maintainer: Mario Finelli <mario at finel dot li>
+# Contributor: Artem Vorotnikov <artem at vorotnikov dot me>
_gemname=coderay
pkgname=ruby-$_gemname
pkgver=1.1.2
-pkgrel=1
+pkgrel=2
pkgdesc='Fast syntax highlighting for selected languages.'
arch=(any)
url='http://coderay.rubychan.de'
license=(MIT)
depends=(ruby)
+makedepends=(rubygems ruby-rdoc)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
-sha512sums=('bd25c0091a271048165af33f60ab846cb623a0da68e5540d98ea2b1c6bdf3348811d98519e537435c9a5515e751ce5975a02adccec9ef225f042a27c43009e63')
+sha256sums=('9efc1b3663fa561ccffada890bd1eec3a5466808ebc711ab1c5d300617d96a97')
package() {
local _gemdir="$(ruby -e'puts Gem.default_dir')"
- gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
+
+ gem install \
+ --ignore-dependencies \
+ --no-user-install \
+ -i "$pkgdir/$_gemdir" \
+ -n "$pkgdir/usr/bin" \
+ $_gemname-$pkgver.gem
+
rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
+
+ install -Dm0644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/MIT-LICENSE" \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}