summaryrefslogtreecommitdiff
path: root/extra/cpio/PKGBUILD
blob: 94d607333e817d161f93991b61566cb2647768fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $Id: PKGBUILD 149526 2012-02-08 11:43:48Z tpowa $
# Maintainer: judd <jvinet@zeroflux.org>
pkgname=cpio
pkgver=2.11
pkgrel=3.1
pkgdesc="A tool to copy files into or out of a cpio or tar archive"
arch=(i686 x86_64 'mips64el')
license=('GPL')
url="http://www.gnu.org/software/cpio"
depends=('glibc')
source=(ftp://ftp.gnu.org/gnu/cpio/cpio-${pkgver}.tar.gz
        gets.patch)
install=cpio.install
md5sums=('1112bb6c45863468b5496ba128792f6c'
         'e9e9d1d64a2caa4b9f49b08dc09298db')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  patch -p1 -i "$srcdir/gets.patch"
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  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
}