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] / patch / Pkgfile
1 # Description: GNU patch
2 # URL: http://www.gnu.org/software/patch/patch.html
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 # Depends on:
6
7 name=patch
8 version=2.6.1
9 release=1
10 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz
11 $name-$version-strnlen.patch
12 strnlen.c strnlen.m4 safe-read.m4)
13
14 build() {
15 cd $name-$version
16 patch -p1 -i $SRC/$name-$version-strnlen.patch
17 cp $SRC/*.m4 gl/m4/
18 cp $SRC/strnlen.c gl/lib/
19
20 ./configure --build=$CHOST \
21 --host=$CTARGET \
22 --prefix=/usr \
23 --mandir=/usr/man
24
25 make
26 make DESTDIR=$PKG install
27 }