[arch-commits] Commit in perl-file-mmagic/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Nov 9 22:14:15 UTC 2018


    Date: Friday, November 9, 2018 @ 22:14:13
  Author: felixonmars
Revision: 404884

archrelease: copy trunk to community-staging-any

Added:
  perl-file-mmagic/repos/community-staging-any/
  perl-file-mmagic/repos/community-staging-any/PKGBUILD
    (from rev 404883, perl-file-mmagic/trunk/PKGBUILD)

----------+
 PKGBUILD |   29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

Copied: perl-file-mmagic/repos/community-staging-any/PKGBUILD (from rev 404883, perl-file-mmagic/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-11-09 22:14:13 UTC (rev 404884)
@@ -0,0 +1,29 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=perl-file-mmagic
+pkgver=1.30
+pkgrel=4
+pkgdesc="Guess file type"
+arch=(any)
+license=('PerlArtistic')
+url="http://search.cpan.org/dist/File-MMagic"
+depends=('perl')
+options=(!emptydirs)
+source=("http://search.cpan.org/CPAN/authors/id/K/KN/KNOK/File-MMagic-${pkgver}.tar.gz")
+md5sums=('a0157c71d5872fa07102a2ffaf7979ec')
+
+build() {
+  cd "${srcdir}/File-MMagic-${pkgver}"
+
+  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+package() {
+  cd "${srcdir}/File-MMagic-${pkgver}"
+  make install DESTDIR="${pkgdir}"
+
+  # remove perllocal.pod and .packlist
+  find "${pkgdir}" -name perllocal.pod -delete
+  find "${pkgdir}" -name .packlist -delete
+}



More information about the arch-commits mailing list