void-ppc / void-packages

The Void source packages collection (all ppc platforms, staging + main)
https://repo.voidlinux-ppc.org
Other
27 stars 12 forks source link

Package file for ctemplate 2.4 #42

Closed FabriceColin closed 4 years ago

FabriceColin commented 4 years ago

Hello there,

Below is a package file for ctemplate 2.4. Would you consider adding this package? I have tried it on a PowerBook5,4 (Void 5.4.41_1 ppc PowerMac uptodate FFF).

Template file for 'ctemplate'

pkgname=ctemplate version=2.4 revision=1 archs="i686 x86_64 ppc" wrksrc="ctemplate-ctemplate-${version}" build_style=gnu-configure hostmakedepends="automake libtool pkg-config python3" short_desc="Simple but powerful template language for C++" maintainer="Fabrice Colin fabrice.colin@gmail.com" license="BSD-3-Clause" homepage="https://github.com/OlafvdSpek/ctemplate" distfiles="https://github.com/OlafvdSpek/ctemplate/archive/${pkgname}-${version}.tar.gz" checksum=ccc4105b3dc51c82b0f194499979be22d5a14504f741115be155bd991ee93cfa

Manually declare shlibs used by the subpkgs.

shlib_provides="libctemplate.so libctemplate_nothreads.so"

pre_configure() { autoreconf -fi }

post_install() { vlicense COPYING }

ctemplate-develpackage() { depends="${sourcepkg}>=${version}${revision}" short_desc+=" - development files" pkg_install() { vmove usr/bin/make_tpl_varnames_h vmove usr/bin/template-converter vmove usr/bin/diff_tpl_auto_escape vmove usr/include vmove usr/lib/pkgconfig vmove "usr/lib/.a" vmove "usr/lib/.la" vmove "usr/lib/*.so" } }

FabriceColin commented 4 years ago

Filed https://github.com/void-linux/void-packages/issues/23387 with upstream