void-packages/srcpkgs/npth/template

28 lines
781 B
Bash

# Template file for 'npth'
pkgname=npth
version=1.7
revision=1
build_style=gnu-configure
short_desc="New portable threads library"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="LGPL-2.1-or-later"
homepage="http://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git"
distfiles="https://gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=8589f56937b75ce33b28d312fccbf302b3b71ec3f3945fde6aaa74027914ad05
post_configure() {
# don't depend on silly glibc internals
vsed -i -e 's/defined(__USE_UNIX98) || defined(__USE_XOPEN2K)/1/' src/npth.h
}
npth-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" -- development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/share
}
}