summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fe6689fc853e38f70f76feda21345325946e0bec (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
# Maintainer: Theodoros Theodoridis <theodoridisgr@gmail.com>
pkgname=yarpgen
pkgver=v1.1.270.g0bfbe4f
pkgrel=2
pkgdesc="(Yet Another Random Program Generator) for stress testing compilers"
arch=('x86_64')
url="https://github.com/intel/yarpgen"
license=('Apache-2.0')
depends=('glibc' 'gcc-libs') 
makedepends=('git' 'cmake')
source=("$pkgname::git+https://github.com/intel/yarpgen.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  # Use the latest commit's hash as a version
   git describe --always | sed 's/-/./g'
}


build() {
  cd "$srcdir/$pkgname"
  mkdir -p build
  cd build
  cmake ..
  make
}

package() {
  cd "$srcdir/$pkgname/build"
  install -Dm755 yarpgen "$pkgdir/usr/bin/yarpgen"
}