25 lines
810 B
Bash
25 lines
810 B
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
pkgname=perl-file-sharedir-install
|
|
pkgver=0.13
|
|
pkgrel=1
|
|
pkgdesc="File::ShareDir::Install - Install read-only data files from a distribution"
|
|
arch=('any')
|
|
url="https://search.cpan.org/dist/File-ShareDir-Install"
|
|
license=('GPL-1')
|
|
options=('!emptydirs')
|
|
source=("https://cpan.org/modules/by-module/File/File-ShareDir-Install-${pkgver}.tar.gz")
|
|
sha512sums=('a119e38491fad8ae0ebd95913e3b608e09a2b99376a5160e75083a28abe4f83c4f6a36df216365527ff87bf8ec095254b16a2f6d2515c69f34609df8672605ca')
|
|
|
|
build() {
|
|
cd "File-ShareDir-Install-${pkgver}"
|
|
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "File-ShareDir-Install-${pkgver}"
|
|
make install DESTDIR="${pkgdir}"
|
|
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
|
|
}
|