void-packages/srcpkgs/yajl/template

42 lines
937 B
Text
Raw Normal View History

# Template build for 'yajl'.
pkgname=yajl
2013-08-19 06:56:08 +00:00
version=2.0.4
revision=1
build_style=cmake
2013-08-19 06:57:56 +00:00
hostmakedepends="ruby cmake doxygen"
2011-11-30 15:15:08 +00:00
short_desc="Yet Another JSON Library"
maintainer="davehome <davehome@redthumb.info.tm>"
license="ISC"
2013-03-12 22:57:36 +00:00
homepage="http://lloyd.github.com/yajl/"
2011-11-30 15:15:08 +00:00
checksum=4917049b7700e289d38e0ac82f63b7182a5dfc6cf21c5eb9a26d70b6d2e7b68b
long_desc="
YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a
small validating JSON generator. YAJL is released under the ISC license."
2013-08-19 06:56:08 +00:00
do_fetch() {
git clone -b${version} git://github.com/lloyd/yajl.git yajl-${version}
}
post_install() {
vmkdir usr/lib
mv ${DESTDIR}/usr/share/pkgconfig ${DESTDIR}/usr/lib
}
yajl-devel_package() {
depends="yajl>=${version}"
2013-08-19 06:56:08 +00:00
short_desc+=" - development files"
pkg_install() {
vmove "usr/lib/*.a"
2013-08-19 06:56:08 +00:00
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/include
}
}
yajl_package() {
pkg_install() {
vmove usr
}
}