summaryrefslogtreecommitdiff
path: root/extra/cpio/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/cpio/PKGBUILD')
-rw-r--r--extra/cpio/PKGBUILD16
1 files changed, 11 insertions, 5 deletions
diff --git a/extra/cpio/PKGBUILD b/extra/cpio/PKGBUILD
index 959cb23dd..52275465c 100644
--- a/extra/cpio/PKGBUILD
+++ b/extra/cpio/PKGBUILD
@@ -1,16 +1,21 @@
-# $Id: PKGBUILD 149526 2012-02-08 11:43:48Z tpowa $
+# $Id: PKGBUILD 185699 2013-05-17 11:26:28Z tpowa $
# Maintainer: judd <jvinet@zeroflux.org>
pkgname=cpio
pkgver=2.11
-pkgrel=3
+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)
+source=(ftp://ftp.gnu.org/gnu/cpio/cpio-${pkgver}.tar.gz
+ cpio-2.11-stdio.in.patch)
install=cpio.install
-md5sums=('1112bb6c45863468b5496ba128792f6c')
+
+prepare() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ patch -Np1 -i ${srcdir}/cpio-2.11-stdio.in.patch
+}
build() {
cd ${srcdir}/${pkgname}-${pkgver}
@@ -22,10 +27,11 @@ 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
}
+md5sums=('1112bb6c45863468b5496ba128792f6c'
+ 'd7e58f2a1ec286febd09ea75042cf96e')