aboutsummaryrefslogtreecommitdiffstats
path: root/testing/creduce/APKBUILD
blob: 0e6cfc5fcf0e5a52125a6b9ff87597a8f3221ead (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
38
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=creduce
pkgver=2.6.0
pkgrel=1
pkgdesc="A C/C++ program reducer"
url="http://embed.cs.utah.edu/creduce/"
arch="all !x86"
license="custom"
# util-linux provides lscpu
depends="clang indent perl perl-exporter-lite perl-file-which
	perl-getopt-tabular perl-regexp-common perl-sys-cpu perl-term-readkey
	util-linux"
makedepends="clang-dev clang-static flex llvm-dev zlib-dev"
source="http://embed.cs.utah.edu/creduce/$pkgname-$pkgver.tar.gz
	namespace-qualify-clang-StringLiteral.patch
	fix-crash-due-to-overwriting-same-location.patch"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"

	CC=clang CXX=clang++ ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--libexecdir=/usr/lib/$pkgname
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="e2a08127d2aea29b6934792eff4ff0d9f10952ca520671c60ef4b24a48522b19c48336d4b9d0b8e8c633dd8832b2a56d3d0daa311478e474e974c60a0ae381f1  creduce-2.6.0.tar.gz
34b0a4f77b4e6c51130771faf653189822bcd53335db24dfa0d5f772315cd5c84c24ef2977fb1a2bc431b611cce4efb5c5e6e3d217e6181433a701ffa0ac4d11  namespace-qualify-clang-StringLiteral.patch
02c87a4efaf31e937dea6e0a84ca4e4d3e0cedc1a013db0f0eea929d0e28afd44e5c65f16087f94f7f41222ba7d2f69ce0e4e1c4a51461f71b18130c563444df  fix-crash-due-to-overwriting-same-location.patch"