summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 81028b2fba9ed567b8eb0ad8858c5e69439414cf (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
28
29
30
# Maintainer: devome <evinedeng@hotmail.com>
# Contributer: desbma

_cpanname=LockFile-Simple
pkgname="perl-${_cpanname,,}"
pkgver=0.208
pkgrel=3
pkgdesc="Perl/CPAN Module Crypt::Simple - simple file locking scheme"
url="http://search.cpan.org/dist/LockFile-Simple"
license=("GPL-2.0-or-later or PerlArtistic")
arch=("any")
depends=("perl")
source=("http://search.cpan.org/CPAN/authors/id/S/SC/SCHWIGON/${pkgname#perl-}/${_cpanname}-${pkgver}.tar.gz")
sha256sums=('45c77896b2a5a0a45f6202a6f813f437ff8b283f84a1c60d0c4f3730802af3a2')

build() {
    cd "${_cpanname}-${pkgver}"

    PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
    make
}

package() {
    cd "${_cpanname}-${pkgver}"

    make pure_install doc_install DESTDIR="${pkgdir}"

    find "${pkgdir}" -name ".packlist" -delete
    find "${pkgdir}" -name "*.pod" -delete
}