[arch-commits] Commit in cpio/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Sat May 16 20:54:18 UTC 2020


    Date: Saturday, May 16, 2020 @ 20:54:17
  Author: foutrelis
Revision: 384848

archrelease: copy trunk to staging-x86_64

Added:
  cpio/repos/staging-x86_64/
  cpio/repos/staging-x86_64/PKGBUILD
    (from rev 384847, cpio/trunk/PKGBUILD)

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

Copied: cpio/repos/staging-x86_64/PKGBUILD (from rev 384847, cpio/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-05-16 20:54:17 UTC (rev 384848)
@@ -0,0 +1,35 @@
+# Maintainer: judd <jvinet at zeroflux.org>
+pkgname=cpio
+pkgver=2.13
+pkgrel=2
+pkgdesc="A tool to copy files into or out of a cpio or tar archive"
+arch=(x86_64)
+license=('GPL')
+url="https://www.gnu.org/software/cpio"
+depends=('glibc')
+source=(https://ftp.gnu.org/gnu/cpio/cpio-${pkgver}.tar.gz{,.sig})
+md5sums=('389c5452d667c23b5eceb206f5000810'
+         'SKIP')
+validpgpkeys=('325F650C4C2B6AD58807327A3602B07F55D0C732') # Sergey Poznyakoff <gray at gnu.org>
+
+build() {
+  cd ${pkgname}-${pkgver}
+  CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
+  ./configure --prefix=/usr --mandir=/usr/share/man
+  make
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  make check
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+  rm -f "${pkgdir}/usr/bin/mt" "${pkgdir}/pkg/usr/share/man/man1/mt.1"
+  rm -rf "${pkgdir}/usr/libexec"
+  rm -f "${pkgdir}/usr/share/man/man8/rmt.8"
+  # remove infodir
+  rm "$pkgdir/usr/share/info/dir"
+}


More information about the arch-commits mailing list