blob: 3e18c9d2c6c9c3fcb733424a57475f8735c326d0 (
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
|
# This PKGBUILD is part of the VDR4Arch project [https://github.com/vdr4arch]
# Maintainer: Christopher Reimer <mail+vdr4arch[at]c-reimer[dot]de>
_pkgname=Template-Plugin-JavaScript
pkgname=perl-template-plugin-javascript
pkgver=0.02
pkgrel=2
pkgdesc="Encodes text to be safe in JavaScript"
arch=("any")
license=("PerlArtistic" "GPL")
options=("!emptydirs")
depends=('perl-template-toolkit')
url="https://search.cpan.org/~miyagawa/Template-Plugin-JavaScript"
source=("https://www.cpan.org/authors/id/M/MI/MIYAGAWA/$_pkgname-$pkgver.tar.gz")
sha256sums=('ea20d806ad652282d0353498e2860df8125c80b6491630c25d263bd880c618d7')
build() {
cd "$srcdir/$_pkgname-$pkgver"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
/usr/bin/perl Makefile.PL
make
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
}
|