From 1fc7fd1e7593f61abd9d67e4d27f12bf09211539 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Mon, 9 Sep 2013 14:57:42 +0200 Subject: [PATCH] first packaging of perl Kwalify module --- .SRCINFO | 15 +++++++++++++++ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..23c767f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = perl-kwalify + pkgdesc = Kwalify schema for data structures + pkgver = 1.22 + pkgrel = 1 + url = http://search.cpan.org/~SREZIC/Kwalify-1.22/ + arch = any + license = GPL + license = PerlArtistic + depends = perl>=5.10.0 + options = !emptydirs + source = http://cpan.perl.org/modules/by-authors/id/SREZIC/Kwalify-1.22.tar.gz + md5sums = 7a2e7ae407493e597108aa1dbfe0226b + +pkgname = perl-kwalify + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..656f7bc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Cedric Girard +_author=SREZIC +_perlmod=Kwalify +pkgname=perl-kwalify +pkgver=1.22 +pkgrel=1 +pkgdesc="Kwalify schema for data structures" +arch=('any') +url="http://search.cpan.org/~$_author/$_perlmod-$pkgver/" +license=('GPL' 'PerlArtistic') +depends=('perl>=5.10.0') +options=(!emptydirs) +source=(http://cpan.perl.org/modules/by-authors/id/$_author/$_perlmod-$pkgver.tar.gz) +md5sums=('7a2e7ae407493e597108aa1dbfe0226b') + +build() { + cd "$srcdir/$_perlmod-$pkgver" + + # Install module in vendor directories. + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make + +} + +package() { + cd "$srcdir/$_perlmod-$pkgver" + make install DESTDIR="$pkgdir/" + +} + +# vim:set ts=2 sw=2 et: