summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leontiev2014-06-11 07:31:57 +0400
committerAnton Leontiev2015-02-15 07:48:23 +0300
commit028c85411d6f2b072cf3041771ee3d2448761553 (patch)
treec85da9acb0c407ca5c879c09ef9add73faf91d09
parentfc3bd3255631e7aa30fb785b89e3df36bc4dd222 (diff)
downloadaur-028c85411d6f2b072cf3041771ee3d2448761553.tar.gz
Updated to use template
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD35
-rw-r--r--PKGBUILD.tt32
3 files changed, 54 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4c0b2963ebe..9d3dd2657b3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
pkgbase = perl-algorithm-permute
- pkgdesc = Perl module for handy and fast permutations with object oriented interface
+ pkgdesc = Perl package for handy and fast permutations with object oriented interface
pkgver = 0.12
- pkgrel = 1
- url = http://search.cpan.org/dist/Algorithm-Permute/
+ pkgrel = 2
+ url = http://search.cpan.org/dist/Algorithm-Permute
arch = i686
arch = x86_64
license = GPL
diff --git a/PKGBUILD b/PKGBUILD
index feb1978cb00..cc504348166 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,32 @@
+# CPAN Name : Algorithm::Permute
# Contributor: Anton Leontiev <bunder /at/ t-25.ru>
+# Generator : CPANPLUS::Dist::Arch 1.28
+
pkgname=perl-algorithm-permute
pkgver=0.12
-pkgrel=1
-pkgdesc="Perl module for handy and fast permutations with object oriented interface"
-arch=("i686" "x86_64")
-license=("GPL")
-url="http://search.cpan.org/dist/Algorithm-Permute/"
-depends=("perl")
+pkgrel=2
+pkgdesc='Perl package for handy and fast permutations with object oriented interface'
+arch=('i686' 'x86_64')
+url='http://search.cpan.org/dist/Algorithm-Permute'
+license=('GPL')
+depends=('perl')
+source=(http://search.cpan.org/CPAN/authors/id/E/ED/EDPRATOMO/Algorithm-Permute-0.12.tar.gz)
options=(!emptydirs)
-source=(http://search.cpan.org/CPAN/authors/id/E/ED/EDPRATOMO/Algorithm-Permute-$pkgver.tar.gz)
-md5sums=("93c9e11af9511390379720fe046fb960")
+md5sums=('93c9e11af9511390379720fe046fb960')
build() {
- cd "$srcdir/Algorithm-Permute-$pkgver"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
- make
+ cd Algorithm-Permute-0.12
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
}
check() {
- cd "$srcdir/Algorithm-Permute-$pkgver"
- make test
+ cd Algorithm-Permute-0.12
+ make test
}
package() {
- cd "$srcdir/Algorithm-Permute-$pkgver"
- make install DESTDIR="$pkgdir"
- find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+ cd Algorithm-Permute-0.12
+ make install DESTDIR="$pkgdir"
+ find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
diff --git a/PKGBUILD.tt b/PKGBUILD.tt
new file mode 100644
index 00000000000..1adbe713371
--- /dev/null
+++ b/PKGBUILD.tt
@@ -0,0 +1,32 @@
+# CPAN Name : Algorithm::Permute
+# Contributor: [% packager %]
+# Generator : CPANPLUS::Dist::Arch [% version %]
+
+pkgname=[% pkgname %]
+pkgver=[% pkgver %]
+pkgrel=[% pkgrel %]
+pkgdesc='Perl package for handy and fast permutations with object oriented interface'
+arch=('i686' 'x86_64')
+url='[% url %]'
+license=('GPL')
+depends=('perl')
+source=([% source %])
+options=(!emptydirs)
+md5sums=('[% md5sums %]')
+
+build() {
+ cd [% distdir %]
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd [% distdir %]
+ make test
+}
+
+package() {
+ cd [% distdir %]
+ make install DESTDIR="$pkgdir"
+ find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}