void-packages/srcpkgs/zxcvbn-c/template

42 lines
995 B
Bash

# Template file for 'zxcvbn-c'
pkgname=zxcvbn-c
version=2.5
revision=1
build_helper=qemu
short_desc="C/C++ version of the zxcvbn password strength estimator"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="MIT"
homepage="https://github.com/tsyrogit/zxcvbn-c"
distfiles="http://dev-www.libreoffice.org/src/${pkgname}-${version}.tar.gz"
checksum=77d6c6ecb35952a8d8ce7f736b7a2bf466275c48210e309b73782d6b7e84dffd
do_build() {
if [ "$CROSS_BUILD" ]; then
export VOID_QEMU=qemu-${XBPS_TARGET_QEMU_MACHINE}-static
fi
make ${makejobs}
}
do_check() {
make test
}
do_install() {
vmkdir usr/lib
vmkdir usr/share/zxcvbn
vcopy "libzxcvbn.so.*" usr/lib
vinstall zxcvbn.dict 0644 usr/share/zxcvbn
}
zxcvbn-c-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vbin dictgen zxcvbn-dictgen
vmkdir usr/include
vinstall zxcvbn.h 0644 usr/include
vmkdir usr/lib
vinstall libzxcvbn.so 0644 usr/lib
}
}