2015-05-06 03:22:12 +00:00
|
|
|
# Template build file for 'libzen'.
|
|
|
|
|
|
|
|
pkgname=libzen
|
|
|
|
version=0.4.31
|
|
|
|
revision=1
|
|
|
|
short_desc="Shared library for libmediainfo and mediainfo"
|
|
|
|
homepage="http://mediaarea.net/MediaInfo"
|
|
|
|
maintainer="Georg Schabel <gescha@posteo.de>"
|
|
|
|
license="zlib"
|
|
|
|
|
|
|
|
distfiles="${SOURCEFORGE_SITE}/zenlib/${pkgname}_${version}.tar.gz"
|
|
|
|
checksum=98ddd5c8e02d672055b0087067bc9bcdff27d5f9a8b8943fc209c53d2cf4caa7
|
|
|
|
|
|
|
|
build_style=gnu-configure
|
|
|
|
hostmakedepends="automake libtool pkg-config"
|
2015-05-06 17:28:01 +00:00
|
|
|
configure_args="--enable-shared"
|
2015-05-06 03:22:12 +00:00
|
|
|
create_wrksrc=yes
|
|
|
|
build_wrksrc="ZenLib/Project/GNU/Library"
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
2015-05-06 03:47:52 +00:00
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
install -dm 755 ${DESTDIR}/usr/include/ZenLib
|
|
|
|
install -m 644 ${wrksrc}/ZenLib/Source/ZenLib/*.h \
|
|
|
|
${DESTDIR}/usr/include/ZenLib
|
|
|
|
for i in HTTP_Client Format/Html Format/Http; do
|
|
|
|
install -dm0755 ${DESTDIR}/usr/include/ZenLib/$i
|
|
|
|
install -m0644 ${wrksrc}/ZenLib/Source/ZenLib/$i/*.h \
|
|
|
|
${DESTDIR}/usr/include/ZenLib/$i
|
|
|
|
done
|
|
|
|
install -dm 755 ${DESTDIR}/usr/lib/pkgconfig
|
|
|
|
install -m 644 libzen.pc ${DESTDIR}/usr/lib/pkgconfig
|
|
|
|
sed -i -e 's|Version: |Version: '$version'|g' \
|
|
|
|
${DESTDIR}/usr/lib/pkgconfig/libzen.pc
|
|
|
|
vlicense ${wrksrc}/ZenLib/License.txt
|
|
|
|
}
|
|
|
|
|
2015-05-06 03:22:12 +00:00
|
|
|
libzen-devel_package() {
|
|
|
|
depends="libzen>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
2015-05-06 17:28:01 +00:00
|
|
|
vmove usr/bin/libzen-config
|
2015-05-06 03:22:12 +00:00
|
|
|
vmove usr/lib/pkgconfig
|
2015-05-06 13:12:14 +00:00
|
|
|
vmove usr/lib/*.a
|
2015-05-06 17:28:01 +00:00
|
|
|
vmove usr/lib/*.so
|
2015-05-06 03:22:12 +00:00
|
|
|
}
|
|
|
|
}
|