-afa193f8c358c5b0a520851bdf45d539 patch-2.6.1-strnlen.patch
-057d78436e858c3ed086a544f5e1fe7e patch-2.6.1.tar.xz
-617cc0a45b47a515ea3ae415e4f13072 safe-read.m4
-8520b59d8a70df0af8b1395df76c9aaf strnlen.c
-192cc9a1273d7d32cf953a8bee88aebc strnlen.m4
+e9ae5393426d3ad783a300a338c09b72 patch-2.7.1.tar.xz
# Depends on:
name=patch
-version=2.6.1
+version=2.7.1
release=1
-source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz
- $name-$version-strnlen.patch
- strnlen.c strnlen.m4 safe-read.m4)
+source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz)
build() {
cd $name-$version
- patch -p1 -i $SRC/$name-$version-strnlen.patch
- cp $SRC/*.m4 gl/m4/
- cp $SRC/strnlen.c gl/lib/
-
./configure --build=$CHOST \
--host=$CTARGET \
--prefix=/usr \
--mandir=/usr/man
- make
+ make
make DESTDIR=$PKG install
}