Files
extra/perl-class-data-inheritable/PKGBUILD
2025-06-22 20:39:04 -05:00

30 lines
1.0 KiB
Bash

# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=perl-class-data-inheritable
pkgver=0.08
pkgrel=1
pkgdesc="Inheritable, overridable class data"
arch=('i686' 'x86_64')
url='https://search.cpan.org/dist/Class-Data-Inheritable'
license=('GPL-1')
depends=('perl>=5.10.0')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/T/TM/TMTM/Class-Data-Inheritable-$pkgver.tar.gz
LICENSE)
sha512sums=('bddc61096158b21d4cfa69538d5db0f53617a66c71447ee193141064f4f58194462b21e0a849510e24e4c263b13be3ee1bc6bb8504320e0a86c02b67ad1652c8'
'1a9916157b9314eb2f0ba09027834eaddf899d4341970238ced32cbe1cd09f8ed5330b773ce0546c575a42acf19ae789cbcdd5f9b55bfcb88033cf08d0015437')
build() {
cd Class-Data-Inheritable-${pkgver}
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
package() {
cd Class-Data-Inheritable-${pkgver}
make install DESTDIR="$pkgdir"
find "$pkgdir" -name '.packlist' -delete
find "$pkgdir" -name '*.pod' -delete
install -Dm644 "$srcdir/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
}