summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: db399a4f6981c49ec1f7f305c6dacaa56a6818e2 (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
27
# Maintainer: Zhuoyun Wei <wzyboy@wzyboy.org>

pkgname=perl-config-onion
_dist=Config-Onion
pkgver=1.007
pkgrel=2
pkgdesc="Config::Onion - Layered configuration, because configs are like ogres"
arch=('any')
url="https://github.com/dsheroh/Config-Onion"
license=('GPL' 'PerlArtistic')
depends=('perl' 'perl-config-any' 'perl-config-any' 'perl-hash-merge-simple' 'perl-moo')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/D/DS/DSHEROH/Config-Onion-${pkgver}.tar.gz")
sha256sums=('327fddf68e138b2469e5a2bae37c733f87ca84caf61e1cfaa949be3d950da8af')

build() {
  cd  "$srcdir"/${_dist}-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/${_dist}-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}