summaryrefslogtreecommitdiffstats
path: root/gettext/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'gettext/Pkgfile')
-rwxr-xr-xgettext/Pkgfile22
1 files changed, 13 insertions, 9 deletions
diff --git a/gettext/Pkgfile b/gettext/Pkgfile
index 4957db609..753c43829 100755
--- a/gettext/Pkgfile
+++ b/gettext/Pkgfile
@@ -6,15 +6,19 @@
name=gettext
version=0.18.1.1
release=1
-source=( http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
+source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
build() {
-cd $name-$version
-./configure --prefix=/usr
-make
-make DESTDIR=$PKG install
-if [ -f $PKG/usr/share/info/dir ]; then
- rm $PKG/usr/share/info/dir
-fi
-rm -rf $PKG/usr/share/doc
+ cd $name-$version
+
+
+ sed -i '/gets is a security hole/d' gettext-{runtime/gnulib-lib,tools/{gnulib-lib,libgettextpo}}/stdio.in.h
+
+ ./configure --prefix=/usr
+ make
+ make DESTDIR=$PKG install
+ if [ -f $PKG/usr/share/info/dir ]; then
+ rm $PKG/usr/share/info/dir
+ fi
+ rm -rf $PKG/usr/share/doc
}