-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
41 lines (37 loc) · 995 Bytes
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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
}
}