void-packages/srcpkgs/libkcapi/template
Toyam Cox ef08247630 libkcapi: fix quoting error found by dxpb
In sh, if you set a variable like:
depends=abcdef>=ghi_jkl
then you will get a file: =ghi_jkl in the current working directory.

This suggests the >= requirement was never enforced for this
package, but now it can be.

To replicate this problem: << EOF
./xbps-src show-pkg-var libkcapi-devel
depends
EOF
2018-08-24 10:31:53 -04:00

36 lines
981 B
Bash

# Template file for 'libkcapi'
pkgname=libkcapi
version=1.1.2
revision=1
build_style=gnu-configure
configure_args=" --enable-kcapi-speed --enable-kcapi-hasher
--enable-kcapi-rngapp --enable-kcapi-encapp --enable-kcapi-dgstapp
--enable-lib-asym --enable-lib-kpp"
hostmakedepends="automake libtool pkg-config"
short_desc="Kernel Crypto API User Space Interface Library"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="GPL-2.0-or-later, BSD-3-Clause"
homepage="https://github.com/smuellerDD/libkcapi"
distfiles="https://github.com/smuellerDD/libkcapi/archive/v${version}.tar.gz"
checksum=91daf8f68607683c79372e0e71eafc8bf58f96dd3977458e7d20db344d8751a3
CFLAGS="-Wno-error"
pre_configure() {
autoreconf -i
}
post_install() {
vlicense COPYING
}
libkcapi-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - Development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
}
}