summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fabbf87f1dec577aa8130f0a8e0ba49625fdd53e (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
# Maintainer: aksr <aksr at t-com dot me>
pkgname=creduce-git
pkgver=2.3.0.14.g49782e7
pkgrel=1
pkgdesc='A C program reducer.'
arch=('i686' 'x86_64')
url='https://github.com/csmith-project/creduce'
license=('custom:University of Illinois/NCSA Open Source License')
depends=('astyle' 'clang' 'delta' 'indent' 'llvm' 'perl-benchmark-timer'
         'perl-exporter-lite' 'perl-file-which' 'perl-getopt-tabular'
         'perl-regexp-common' 'perl-sys-cpu' 'zlib')
makedepends=('git')
source=("$pkgname::git+https://github.com/csmith-project/creduce.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  git describe --always | sed 's/^creduce.//;s|-|.|g'
}

build() {
  cd "$srcdir/$pkgname"
  ./configure --prefix=/usr --libexecdir=/usr/lib/creduce
  make
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir/" install
  install -Dm644 "COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}