diff --git a/common/shlibs b/common/shlibs index aa217771a55..0bfabc7baed 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1463,3 +1463,4 @@ libmulticobex.so.1 libmulticobex-0.24_1 libobexftp.so.0 libobexftp-0.24_1 libhunspell-1.3.so.0 libhunspell-1.3.2_1 libstdlog.so.0 liblogging-1.0.0_1 +libdom.so.0 libdom-0.0.1_1 diff --git a/srcpkgs/libdom/template b/srcpkgs/libdom/template index dcbdb0f4236..4cc4b165cc8 100644 --- a/srcpkgs/libdom/template +++ b/srcpkgs/libdom/template @@ -1,46 +1,35 @@ # Template build file for 'libdom'. pkgname=libdom -_svnrev=13951 -version=20120706.${_svnrev} +version=0.0.1 revision=1 -hostmakedepends="pkg-config perl subversion" -makedepends="libxml2-devel libparserutils-devel libwapcaplet-devel libhubbub-devel" +hostmakedepends="pkg-config perl netsurf-buildsystem" +makedepends="expat-devel libparserutils-devel libwapcaplet-devel libhubbub-devel" short_desc="Implementation of the W3C DOM, written in C." maintainer="davehome " license="MIT" homepage="http://www.netsurf-browser.org" -long_desc=" - LibDOM is an implementation of the W3C DOM, written in C. It is - currently in development for use with NetSurf and is intended to - be suitable for use in other projects too. For further details, - see the readme." - -do_fetch() { - local url="svn://svn.netsurf-browser.org/trunk/libdom" - msg_normal " Fetching source from $url (revision ${_svnrev}) ...\n" - svn checkout -r ${_svnrev} ${url} ${pkgname}-${version} -} +distfiles="http://download.netsurf-browser.org/libs/releases/${pkgname}-${version}-src.tar.gz" +checksum=2aa75861c8a8291b6b3d1a3856c65ca615677afeec64ccfdf35a113a292c36b1 do_build() { - make ${makejobs} COMPONENT_TYPE=lib-shared - make ${makejobs} COMPONENT_TYPE=lib-static + make ${makejobs} COMPONENT_TYPE=lib-shared PREFIX=/usr + make ${makejobs} COMPONENT_TYPE=lib-static PREFIX=/usr } do_install() { - make ${makejobs} COMPONENT_TYPE=lib-shared \ - PREFIX=/usr DESTDIR=${DESTDIR} install - make ${makejobs} COMPONENT_TYPE=lib-static \ - PREFIX=/usr DESTDIR=${DESTDIR} install + make COMPONENT_TYPE=lib-shared PREFIX=/usr DESTDIR=${DESTDIR} install + make COMPONENT_TYPE=lib-static PREFIX=/usr DESTDIR=${DESTDIR} install - vinstall "${wrksrc}/COPYING" 644 "usr/share/license/${pkgname}" + vinstall COPYING 0644 usr/share/licenses/${pkgname} } libdom-devel_package() { - depends="libdom>=${version}" - short_desc+=" -- development files" + depends="${makedepends} ${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig vmove "usr/lib/*.a" + vmove "usr/lib/*.so" } }