summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenry-Joseph Audéoud2020-06-08 17:55:22 +0200
committerHenry-Joseph Audéoud2020-06-08 17:56:36 +0200
commitcf47679359a4f0105c29661f9f0ba7811694b5bd (patch)
tree6bfa010d9dd3dbac92b9b99bc9173ac47a90e8a6
parentfeb983b998a88c5f84d0ab16aa94da71ede0771f (diff)
downloadaur-cf47679359a4f0105c29661f9f0ba7811694b5bd.tar.gz
Use ${_name} as upstream name in urls ans paths
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD14
2 files changed, 9 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0ed1180f9d4..8252dad4d90 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = ruby-kramdown-rfc2629
pkgdesc = An RFC2629 (XML2RFC) generating backend for Thomas Leitner's kramdown markdown parser
pkgver = 1.2.13
- pkgrel = 1
+ pkgrel = 2
url = http://github.com/cabo/kramdown-rfc2629
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index 1d2be8bda15..c506e179127 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,27 @@
-# Maintainer: Toke Høiland-Jørgensen <toke@toke.dk>
+# Maintainer: Henry-Joseph Audéoud <h.audeoud@gmail.com>
+# Contributor: Toke Høiland-Jørgensen <toke@toke.dk>
# Based on the ruby-kramdown PKGBUILD
pkgname=ruby-kramdown-rfc2629
+_name="${pkgname#ruby-}"
pkgver=1.2.13
-pkgrel=1
+pkgrel=2
pkgdesc="An RFC2629 (XML2RFC) generating backend for Thomas Leitner's kramdown markdown parser"
arch=(any)
url='http://github.com/cabo/kramdown-rfc2629'
license=('MIT')
depends=('ruby-kramdown' 'ruby-certified')
options=(!emptydirs)
-source=("https://rubygems.org/downloads/kramdown-rfc2629-${pkgver}.gem")
-noextract=("kramdown-rfc2629-${pkgver}.gem")
+source=("https://rubygems.org/downloads/${_name}-${pkgver}.gem")
+noextract=("${_name}-${pkgver}.gem")
sha256sums=('2dd1e13831c3dd87f465610c3368a286cc1ac8057d7f06669caa318a0da9a368')
package() {
local _gemdir="$(ruby -e'puts Gem.default_dir')"
gem install --ignore-dependencies --no-user-install \
- -i "${pkgdir}/${_gemdir}" -n "${pkgdir}/usr/bin" "kramdown-rfc2629-${pkgver}.gem"
+ -i "${pkgdir}/${_gemdir}" -n "${pkgdir}/usr/bin" "${_name}-${pkgver}.gem"
- install -D -m644 "${pkgdir}/${_gemdir}/gems/kramdown-rfc2629-${pkgver}/LICENSE" \
+ install -D -m644 "${pkgdir}/${_gemdir}/gems/${_name}-${pkgver}/LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}