#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer	: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website		: https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=perl-linux-desktopfiles
_pkgname=Linux-DesktopFiles
pkgver=0.25
pkgrel=06
pkgdesc="Linux::DesktopFiles - a very fast Perl module for parsing the Linux desktop files."
arch=('any')
url="https://metacpan.org/pod/Linux::DesktopFiles"
source=("http://cpan.metacpan.org/authors/id/T/TR/TRIZEN/$_pkgname-$pkgver.tar.gz")
options=('!emptydirs')
depends=('perl>=5.14.0')
makedepends=('perl-module-build') # 'perl-module-build'

build() {
   cd "$_pkgname-$pkgver"
   perl Build.PL --destdir "${pkgdir}" --installdirs vendor
   ./Build
}

check() {
   cd "$_pkgname-$pkgver"
   ./Build test
}

package() {
    cd "$_pkgname-$pkgver"
    ./Build install
}

#---- license gpg-key sha256sums ----

license=(PerlArtistic GPL)

sha256sums=(60377a74fba90fa465200ee1c7430dbdde69d454d85f9ee101c039803a07e5f5) #  Linux-DesktopFiles-0.25.tar.gz
