# Template file for 'qqwing' pkgname=qqwing version=1.3.4 revision=1 build_style=gnu-configure hostmakedepends="automake libtool pkg-config" short_desc="Sudoku generating and solving library" maintainer="Jürgen Buchmüller " license="GPL-2" homepage="http://qqwing.com/" distfiles="https://github.com/stephenostermiller/${pkgname}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz" checksum=dc5d61b4470862b190d437f8143d4090639c164d34461c4caa5c081c5c91e6cc do_configure() { cd ${wrksrc} mkdir -p target/automake cp build/configure.ac build/Makefile.am build/qqwing.pc.in doc/README doc/AUTHORS doc/COPYING target/automake cp doc/qqwing.man target/automake/qqwing.1 cd target/automake autoreconf -if ./configure ${configure_args} } do_build() { cd ${wrksrc} build/cpp_compile.sh } do_install() { cd ${wrksrc} cd target/automake # Install manual page vman qqwing.1 # Install include file vmkdir usr/include vcopy qqwing.hpp usr/include # Install pkgconfig file vmkdir usr/lib/pkgconfig vcopy qqwing.pc usr/lib/pkgconfig # Install binary vbin qqwing # Install shared libraries vmkdir usr/lib vcopy ".libs/libqqwing.so*" usr/lib } qqwing-devel_package() { short_desc+=" - development files" depends="${sourcepkg}>=${version}_${revision}" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig vmove usr/lib/*.so } }