void-packages/srcpkgs/libatomic_ops/template

30 lines
854 B
Bash

# Template file for 'libatomic_ops'
pkgname=libatomic_ops
version=7.4.4
revision=1
wrksrc="${pkgname}-${version/e/}"
build_style=gnu-configure
configure_args="--enable-shared --enable-static"
hostmakedepends="automake libtool"
short_desc="Provides semi-portable access to hardware provided atomic memory operations"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2, MIT"
homepage="https://github.com/ivmai/libatomic_ops"
distfiles="http://www.ivmaisoft.com/_bin/atomic_ops/${pkgname}-${version}.tar.gz"
checksum=bf210a600dd1becbf7936dd2914cf5f5d3356046904848dcfd27d0c8b12b6f8f
pre_configure() {
autoreconf -fi
}
libatomic_ops-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}