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

Felix Yan felixonmars at archlinux.org
Tue Jul 7 12:44:41 UTC 2020


    Date: Tuesday, July 7, 2020 @ 12:44:40
  Author: felixonmars
Revision: 658216

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 658214, perl-file-mmagic/trunk/PKGBUILD)

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

Copied: perl-file-mmagic/repos/community-staging-any/PKGBUILD (from rev 658214, perl-file-mmagic/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-07-07 12:44:40 UTC (rev 658216)
@@ -0,0 +1,29 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=perl-file-mmagic
+pkgver=1.30
+pkgrel=5
+pkgdesc="Guess file type"
+arch=(any)
+license=('PerlArtistic')
+url="https://search.cpan.org/dist/File-MMagic"
+depends=('perl')
+options=(!emptydirs)
+source=("https://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