summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1ebe4149c3e62a78f055e6c4b6e0259fd71a9142 (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
31
32
33
34
# Maintainer: freggel.doe <freggel.doe@gmx.net>

pkgname=perl-text-mediawikiformat
_cpanname=Text-MediawikiFormat
_module=Text::MediawikiFormat
pkgver=1.04
pkgrel=3
pkgdesc="Translate Wiki markup into other text formats"
arch=('any')
url="https://metacpan.org/release/$_cpanname"
license=('GPL' 'PerlArtistic')
depends=('perl')
checkdepends=('perl-test-nowarnings' 'perl-test-warn')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/S/SZ/SZABGAB/${_cpanname}-${pkgver}.tar.gz")
sha1sums=('81dc3a467790234c62eac138d0f1a9c52c36ba36')

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

check() {
    cd "$srcdir/$_cpanname-$pkgver"
    make test
}

package() {
    cd "$srcdir/$_cpanname-$pkgver"
    make install DESTDIR="$pkgdir"
}

# vim:set ts=4 sw=4 expandtab: