mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
35 lines
1.0 KiB
Bash
35 lines
1.0 KiB
Bash
#
|
|
# Core Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=cpio
|
|
pkgver=2.11
|
|
pkgrel=4
|
|
pkgdesc="A tool to copy files into or out of a cpio or tar archive"
|
|
arch=(i686 x86_64)
|
|
license=('GPL')
|
|
url="http://www.gnu.org/software/cpio"
|
|
depends=('glibc')
|
|
source=(ftp://ftp.gnu.org/gnu/cpio/cpio-${pkgver}.tar.gz)
|
|
install=cpio.install
|
|
md5sums=('1112bb6c45863468b5496ba128792f6c')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
./configure --prefix=/usr --mandir=/usr/share/man
|
|
make || return 1
|
|
make DESTDIR=${pkgdir} install
|
|
rm -f ${pkgdir}/usr/bin/mt ${pkgdir}/pkg/usr/share/man/man1/mt.1
|
|
mv ${pkgdir}/usr/bin ${pkgdir}/bin
|
|
rm -rf ${pkgdir}/usr/libexec
|
|
# remove mt manpage it conflicts with mt-st from extra
|
|
rm $pkgdir/usr/share/man/man1/mt.1 || return 1
|
|
# remove infodir
|
|
rm $pkgdir/usr/share/info/dir
|
|
}
|