upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / ruby-cairo / trunk / PKGBUILD
blob3f6ca2508e76e1b95f04e1a975bcff7e99242f1a
1 # Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
2 # Contributor: Andreas 'Segaja' Schleifer <segaja at archlinux dot org>
4 _gemname=cairo
5 pkgname=ruby-$_gemname
6 pkgver=1.17.8
7 pkgrel=2
8 pkgdesc='Ruby bindings for cairo'
9 arch=('x86_64')
10 url='https://cairographics.org/rcairo'
11 license=('Ruby')
12 depends=('ruby' 'cairo' 'ruby-pkg-config' 'ruby-native-package-installer' 'ruby-red-colors')
13 makedepends=('ruby-rdoc')
14 options=('!emptydirs')
15 source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
16 noextract=($_gemname-$pkgver.gem)
17 sha512sums=('a2b756dc1cf1abb98e4b60b9b56f5f610058bd840b67c991d6bfb3da2523b0f77a5854147f9d14ca461d573e51fbe3ba35c83659af5c031086710970fac6665a')
19 package() {
20   local _gemdir="$(ruby -e'puts Gem.default_dir')"
21   local _platform="$(gem env platform | cut -d':' -f2)"
22   local _extension_api_version="$(ruby -e'puts Gem.extension_api_version')"
23   gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
24   rm -r "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem" "${pkgdir}/${_gemdir}/extensions/${_platform}/${_extension_api_version}/${_gemname}-${pkgver}/gem_make.out" "${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/ext/cairo/Makefile" "${pkgdir}/${_gemdir}/doc/${_gemname}-${pkgver}/ri/ext"
25   install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING"