archrelease: copy trunk to community-any
[ArchLinux/community.git] / ruby-shadow / trunk / PKGBUILD
blob5e2bbc186d637bbf154d646371dde1ac05a34322
1 # Maintainer: Tim Meusel <tim@bastelfreak.de>
2 # Contributor: Jonathan Steel <jsteel at archlinux.org>
3 # Contributor: Greg Sutcliffe <greg.sutcliffe@gmail.com>>
5 pkgname=ruby-shadow
6 pkgver=2.5.1
7 pkgrel=1
8 pkgdesc="Shadow password module"
9 arch=('x86_64')
10 url="https://github.com/apalmblad/${pkgname}"
11 license=('Unlicense')
12 depends=('ruby')
13 source=($pkgname-$pkgver.tar.gz::https://github.com/apalmblad/$pkgname/archive/$pkgver.tar.gz)
14 sha512sums=('04b73809fe2615b2a4b34b8e08ddce032fc5d7e6d55a93162424db9067e7b7bcb46fb48156ba4cc346a9f8bd0bc54163cdbbdeedb64f43b473269e6bf9e606af')
16 prepare() {
17   cd "${pkgname}-${pkgver}"
20 build() {
21   cd "${pkgname}-${pkgver}"
23   ruby extconf.rb
24   make
27 package() {
28   cd "${pkgname}-${pkgver}"
30   make DESTDIR="$pkgdir"/ sitedir='$(rubylibprefix)/vendor_ruby' sitehdrdir='$(rubyhdrdir)/vendor_ruby' install
32   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"