New package: iniparser-4.0

This commit is contained in:
Jürgen Buchmüller 2015-08-17 10:01:14 +02:00
parent c8696d217e
commit 0131fc465d
6 changed files with 87 additions and 0 deletions

View File

@ -2129,3 +2129,4 @@ libCEGUICommonDialogs-0.so.2 cegui-0.8.4_1
libct.so.4 freetds-0.95.19_1
libsybdb.so.5 freetds-0.95.19_1
libqqwing.so.2 qqwing-1.3.4_1
libiniparser.so.0 iniparser-4.0_1

1
srcpkgs/iniparser-devel Symbolic link
View File

@ -0,0 +1 @@
iniparser

1
srcpkgs/iniparser-docs Symbolic link
View File

@ -0,0 +1 @@
iniparser

1
srcpkgs/iniparser-example Symbolic link
View File

@ -0,0 +1 @@
iniparser

View File

@ -0,0 +1,11 @@
# Package configuration for @PKGNAME@-@VERSION@
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: @PKGNAME@
Description: Library to parse ini files
Version: @VERSION@
Libs: -L${libdir} -liniparser
Cflags: -I${includedir}

View File

@ -0,0 +1,72 @@
# Template file for 'iniparser'
pkgname=iniparser
version=4.0
revision=1
build_style=gnu-makefile
hostmakedepends="doxygen chrpath"
short_desc="A free stand-alone ini file parsing library"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="MIT"
homepage="http://ndevilla.free.fr/iniparser/"
distfiles="https://github.com/ndevilla/iniparser/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=e0bbd664bb3f0d64c21ac2d67a843b1c7a3a9710e96393344d170ab8b33e92ba
CFLAGS="-fPIC"
post_build() {
make CC=$CC example
make docs
}
do_install() {
vlicense LICENSE
# Install header files
vmkdir usr/include
vcopy "src/*.h" usr/include
# Install libraries
vmkdir usr/lib
vcopy "libiniparser.*" usr/lib
ln -s libiniparser.so.0 ${DESTDIR}/usr/lib/libiniparser.so
chrpath -d ${DESTDIR}/usr/lib/libiniparser.so
# Install pkg-config file
vmkdir usr/lib/pkgconfig
sed ${FILESDIR}/${pkgname}.pc \
-e "s;@PKGNAME@;$pkgname;g" \
-e "s;@VERSION@;$version;g" \
> ${DESTDIR}/usr/lib/pkgconfig/${pkgname}.pc
# Install example source and binaries
vmkdir usr/share/${pkgname}/example
vcopy "${wrksrc}/example/*" usr/share/${pkgname}/example
# Install documentation
vmkdir usr/share/doc/${pkgname}
vcopy "${wrksrc}/html/*" usr/share/doc/${pkgname}
}
iniparser-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}
iniparser-docs_package() {
short_desc+=" - documentation"
noarch=yes
pkg_install() {
vmove usr/share/doc/iniparser
}
}
iniparser-example_package() {
short_desc+=" - example code"
pkg_install() {
vmove usr/share/iniparser/example
}
}