mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 18:07:14 +08:00
29 lines
824 B
Bash
29 lines
824 B
Bash
# maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
|
|
|
|
pkgname=libsysactivity
|
|
pkgver=0.6.4
|
|
pkgrel=1
|
|
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)
|
|
md5sums=('ff608ad4b1e589f03b5b1aa664fecfd8')
|
|
|
|
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
|
|
}
|