summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Rogoża2017-06-12 23:07:25 +0200
committerPiotr Rogoża2017-06-12 23:07:25 +0200
commitc117c22de1e9fb8e663651074ce1619ace8c311f (patch)
treecbaf6b0a229dfec81429d038292b5ea922519628
downloadaur-c117c22de1e9fb8e663651074ce1619ace8c311f.tar.gz
Initial commit
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD55
2 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..67982b66bdf
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+# Generated by mksrcinfo v8
+# Mon Jun 12 21:05:38 UTC 2017
+pkgbase = perl-test-mojibake
+ pkgdesc = Test::Mojibake - check your source for encoding misbehavior
+ pkgver = 1.3
+ pkgrel = 1
+ url = http://search.cpan.org/dist/Test-Mojibake/
+ arch = any
+ license = GPL
+ license = PerlArtistic
+ makedepends = perl-test-version
+ makedepends = perl-test-synopsis
+ depends = perl
+ options = !emptydirs
+ source = http://search.cpan.org/CPAN/authors/id/S/SY/SYP/Test-Mojibake-1.3.tar.gz
+ sha256sums = 8ffe75ff9b69352488727dca73db91f8aa14b59f2fa104eb7717c0d71a5f1b33
+
+pkgname = perl-test-mojibake
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e1e51e037a5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,55 @@
+# Maintainer: dracorp aka Piotr Rogoza <piotr.r.public at gmail.com>
+
+pkgname=perl-test-mojibake
+pkgver=1.3
+pkgrel=1
+_author="S/SY/SYP"
+_perlmod="Test-Mojibake"
+pkgdesc="Test::Mojibake - check your source for encoding misbehavior"
+arch=('any')
+url="http://search.cpan.org/dist/Test-Mojibake/"
+license=('GPL' 'PerlArtistic')
+depends=(perl)
+checkdepends=()
+makedepends=(perl-test-version perl-test-synopsis)
+provides=()
+conflicts=()
+replaces=()
+backup=()
+install=
+noextract=()
+options=(!emptydirs)
+source=("http://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-$pkgver.tar.gz")
+unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps MODULEBUILDRC=/dev/null
+build(){
+ cd "$srcdir"/$_perlmod-$pkgver
+
+ if [ -f Makefile.PL ]; then
+ /usr/bin/perl Makefile.PL
+ make
+ else
+ /usr/bin/perl Build.PL
+ ./Build
+ fi
+}
+check(){
+ cd "$srcdir"/$_perlmod-$pkgver
+
+ if [ -f Makefile.PL ]; then
+ make test
+ else
+ ./Build test
+ fi
+}
+package(){
+ cd "$srcdir"/$_perlmod-$pkgver
+
+ if [ -f Makefile.PL ]; then
+ make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
+ else
+ ./Build install installdirs=vendor destdir="$pkgdir"
+ fi
+}
+
+sha256sums=('8ffe75ff9b69352488727dca73db91f8aa14b59f2fa104eb7717c0d71a5f1b33')