CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
kbd: updated to 1.15.3 and aligned with upstream
[crossrootfs.git] / patch / Pkgfile
CommitLineData
6dca1d21
JB
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
b751b192 4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
9e534f3f 5# Depends on:
6dca1d21
JB
6
7name=patch
1844ed75 8version=2.6.1
6dca1d21 9release=1
1844ed75
VM
10source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz
11 $name-$version-strnlen.patch
12 strnlen.c strnlen.m4 safe-read.m4)
6dca1d21
JB
13
14build() {
9e534f3f 15 cd $name-$version
1844ed75
VM
16 patch -p1 -i $SRC/$name-$version-strnlen.patch
17 cp $SRC/*.m4 gl/m4/
18 cp $SRC/strnlen.c gl/lib/
9e534f3f
JB
19
20 ./configure --build=$CHOST \
21 --host=$CTARGET \
1844ed75
VM
22 --prefix=/usr \
23 --mandir=/usr/man
9e534f3f 24
1844ed75
VM
25 make
26 make DESTDIR=$PKG install
6dca1d21 27}