CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
e2fsprogs: updated to 1.42.5 and aligned with upstream
[crossrootfs.git] / cpio / Pkgfile
1 # Description: A tool to copy files into or out of a cpio or tar archive
2 # URL: http://www.gnu.org/software/cpio/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5
6 name=cpio
7 version=2.11
8 release=2
9 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2 \
10 cpio-2.11-stat.patch)
11
12 build() {
13 cd $name-$version
14
15 patch -p1 -i $SRC/cpio-2.11-stat.patch
16 # fix for glibc 'gets' removal
17 sed -i -e '/gets is a/d' gnu/stdio.in.h
18
19 ./configure --build=$CHOST \
20 --host=$CTARGET \
21 --prefix=/usr \
22 --mandir=/usr/man \
23 --disable-nls
24
25 make
26 make DESTDIR=$PKG install
27
28 rm -r $PKG/usr/{share,libexec}
29 rm $PKG/usr/man/man1/mt.1
30 }