iniparser: fix ELF in /usr/share (remove example binary)
This also means the examples package can become noarch as it only contains source code.
This commit is contained in:
parent
bebeb4ecfa
commit
4d6b430739
1 changed files with 3 additions and 7 deletions
|
@ -1,10 +1,10 @@
|
||||||
# Template file for 'iniparser'
|
# Template file for 'iniparser'
|
||||||
pkgname=iniparser
|
pkgname=iniparser
|
||||||
version=4.1
|
version=4.1
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
hostmakedepends="doxygen chrpath"
|
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 <pullmoll@t-online.de>"
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="http://ndevilla.free.fr/iniparser/"
|
homepage="http://ndevilla.free.fr/iniparser/"
|
||||||
|
@ -14,11 +14,6 @@ checksum=960daa800dd31d70ba1bacf3ea2d22e8ddfc2906534bf328319495966443f3ae
|
||||||
CFLAGS="-fPIC"
|
CFLAGS="-fPIC"
|
||||||
|
|
||||||
post_build() {
|
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
|
make docs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,6 +65,7 @@ iniparser-doc_package() {
|
||||||
}
|
}
|
||||||
iniparser-example_package() {
|
iniparser-example_package() {
|
||||||
short_desc+=" - example code"
|
short_desc+=" - example code"
|
||||||
|
noarch=yes
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/share/iniparser/example
|
vmove usr/share/iniparser/example
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue