diff options
Diffstat (limited to 'main/diffutils/APKBUILD')
-rw-r--r-- | main/diffutils/APKBUILD | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/main/diffutils/APKBUILD b/main/diffutils/APKBUILD index 7e9e5eb32e..d0b8bea69e 100644 --- a/main/diffutils/APKBUILD +++ b/main/diffutils/APKBUILD @@ -14,6 +14,19 @@ source="http://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz" _builddir=$srcdir/$pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + # fix eglibc-2.16 build issue + sed -i -e '/gets is a/d' \ + lib/stdio.in.h || return 1 +} + build() { cd "$_builddir" |