summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b088b7fc69c78a72db38510ea50cb41a977e69ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#Maintainer: Mark Riedesel <mark@klowner.com>

pkgname=easy_profiler
pkgver=2.0.1
pkgrel=1
pkgdesc='Lightweight cross-platform profiler library for c++'
arch=('x86_64' 'i686' 'arm')
url='https://github.com/yse/easy_profiler'
license=('MIT')
makedepends=('cmake')
source=(
	"${pkgname}-${pkgver}.tar.gz::https://github.com/yse/${pkgname}/archive/v${pkgver}.tar.gz"
	cmake-destination.patch
)

prepare() {
	cd ${pkgname}-${pkgver}
	patch -Np1 -i "${srcdir}/cmake-destination.patch"
}

build() {
	cd ${srcdir}/${pkgname}-${pkgver}
	mkdir -p build
	cd build
	cmake .. \
		-DCMAKE_BUILD_TYPE="Release" \
		-DCMAKE_INSTALL_PREFIX=/usr
	make
}

package() {
	cd ${srcdir}/${pkgname}-${pkgver}/build
	make DESTDIR=${pkgdir} install
}

md5sums=('f5d17cd937ba39d3b2584b003a71e6a7'
         '2e3f68c068787b71c2746b237550036d')