From 4d6b4307393d2447c30e0e40fb11e6229d28545c Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 12 Feb 2019 19:32:52 +0100 Subject: [PATCH] iniparser: fix ELF in /usr/share (remove example binary) This also means the examples package can become noarch as it only contains source code. --- srcpkgs/iniparser/template | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/srcpkgs/iniparser/template b/srcpkgs/iniparser/template index 326dc1521fc..f208dfcac32 100644 --- a/srcpkgs/iniparser/template +++ b/srcpkgs/iniparser/template @@ -1,10 +1,10 @@ # Template file for 'iniparser' pkgname=iniparser version=4.1 -revision=1 +revision=2 build_style=gnu-makefile hostmakedepends="doxygen chrpath" -short_desc="A free stand-alone ini file parsing library" +short_desc="Free stand-alone ini file parsing library" maintainer="Jürgen Buchmüller " license="MIT" homepage="http://ndevilla.free.fr/iniparser/" @@ -14,11 +14,6 @@ checksum=960daa800dd31d70ba1bacf3ea2d22e8ddfc2906534bf328319495966443f3ae CFLAGS="-fPIC" post_build() { - sed -i example/Makefile \ - -e"s;^\(CFLAGS.*=.*\);& $CFLAGS;" \ - -e"s;^\(LFLAGS.*=.*\);& $LDFLAGS;" \ - -e's;$(CC) $(CFLAGS);& $(LDFLAGS);' - make CC=$CC example make docs } @@ -70,6 +65,7 @@ iniparser-doc_package() { } iniparser-example_package() { short_desc+=" - example code" + noarch=yes pkg_install() { vmove usr/share/iniparser/example }