mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 19:47:13 +08:00
33 lines
1.0 KiB
Bash
33 lines
1.0 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=libsysactivity
|
|
pkgver=0.6.1
|
|
pkgrel=2
|
|
pkgdesc="A lightweight library that retrieves statistics of the system's activity in a portable and thread safe way."
|
|
url="http://sourceforge.net/projects/libsysactivity/"
|
|
license=('LGPL')
|
|
arch=('i686' 'x86_64')
|
|
depends=('glibc')
|
|
makedepends=('cmake')
|
|
source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz cmakelist.patch)
|
|
md5sums=('a81fc993489dafd5308347b3a48525a5'
|
|
'af299470d092281bd54b4a67505211d8')
|
|
|
|
build(){
|
|
cd ${srcdir}
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
patch -Np0 -i "${srcdir}/cmakelist.patch" || return 1
|
|
mkdir ${srcdir}/build
|
|
cd ${srcdir}/build
|
|
cmake ${srcdir}/libsysactivity-${pkgver} -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/build
|
|
make DESTDIR="${pkgdir}" install
|
|
} |