void-packages/srcpkgs/cgmanager/template

40 lines
1.0 KiB
Bash

# Template file for 'cgmanager'
pkgname=cgmanager
version=0.39
revision=1
build_pie=yes
build_style=gnu-configure
configure_args="--sbindir=/usr/bin --with-distro=void --with-pamdir=/usr/lib/security"
hostmakedepends="automake libtool pkg-config"
makedepends="pam-devel dbus-devel libnih-devel"
short_desc="A daemon for managing Linux control groups"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="https://linuxcontainers.org/cgmanager/introduction/"
distfiles="https://linuxcontainers.org/downloads/cgmanager/cgmanager-${version}.tar.gz"
checksum=9e65487fb4e4aa0a6acd87ba7f8f00b8007d8c52608aa6d411e72e6fe9445b7b
pre_configure() {
autoreconf -fi
}
post_install() {
vsv $pkgname
}
libcgmanager_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove usr/lib/*.so.*
}
}
libcgmanager-devel_package() {
short_desc+=" - development files"
depends="${makedepends} lib${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}