summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3411dd5ec95a4c4c08cb91ced8bd978155e1c9de (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
# Maintainer: Ankit R Gadiya <arch@argp.in>
# Contributor: Joel Goguen <contact+aur@jgoguen.ca>

_gemname=jekyll-sitemap
pkgname=ruby-jekyll-sitemap
pkgver=1.4.0
pkgrel=1
pkgdesc="Automatically generate a sitemap.xml for your Jekyll site."
arch=('any')
depends=('ruby' 'jekyll')
url="https://rubygems.org/gems/jekyll-sitemap"
noextract=("jekyll-sitemap-${pkgver}.gem")
license=('MIT')
source=("https://rubygems.org/downloads/jekyll-sitemap-${pkgver}.gem")
sha256sums=('0de08c5debc185ea5a8f980e1025c7cd3f8e0c35c8b6ef592f15c46235cf4218')

package() {
    local _gemdir="$(ruby -e'puts Gem.default_dir')"
    gem install --ignore-dependencies --no-user-install -i "${pkgdir}/${_gemdir}" -n "${pkgdir}/usr/bin" "jekyll-sitemap-${pkgver}.gem"
    rm "${pkgdir}/${_gemdir}/cache/jekyll-sitemap-${pkgver}.gem"

    install -D -m644 "${pkgdir}/${_gemdir}/gems/jekyll-sitemap-${pkgver}/LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

    # Fix Compress Error
    rm "${pkgdir}/${_gemdir}/gems/jekyll-sitemap-${pkgver}/spec/fixtures/_posts/"2016-*.html
}