38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
pkgname=cpio
|
|
pkgver=2.13
|
|
pkgrel=1
|
|
pkgdesc="A tool to copy files into or out of a cpio or tar archive"
|
|
arch=('i686' 'x86_64')
|
|
license=('GPL-3')
|
|
url="https://www.gnu.org/software/cpio"
|
|
depends=('glibc')
|
|
source=(https://ftp.gnu.org/gnu/cpio/cpio-${pkgver}.tar.gz{,.sig})
|
|
sha512sums=('1e1ca6b3e3e64f206f9d828a152d6b4f8f6974de7a953ff96e02698b1c3c2c777c2111450e6a71c0693e29ca8bc01c3dda9f5e829b8e3221f647414df49dff6a'
|
|
'SKIP')
|
|
validpgpkeys=('325F650C4C2B6AD58807327A3602B07F55D0C732') # Sergey Poznyakoff <gray@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"
|
|
install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/$pkgname"
|
|
}
|