void-packages/srcpkgs/libatomic_ops/template

33 lines
864 B
Bash

# Template file for 'libatomic_ops'
pkgname=libatomic_ops
version=7.4.10
revision=1
build_style=gnu-configure
configure_args="--enable-shared --enable-static"
hostmakedepends="automake libtool"
short_desc="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="${homepage}/releases/download/v${version}/libatomic_ops-${version}.tar.gz"
checksum=5f1bcbef3888d34c21cbbcd635336c5619927ff835868c8dbe7442d79320e707
pre_configure() {
autoreconf -fi
}
post_install() {
vlicense doc/LICENSING.txt
}
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"
}
}