aports/testing/csmith/APKBUILD
yzewei 1a66f1963a testing/csmith: fix url 404
Signed-off-by: yzewei <yangzewei@loongson.cn>
2024-07-01 14:06:47 +00:00

43 lines
1.2 KiB
Text

# Maintainer: Daniel Sabogal <dsabogalcc@gmail.com>
pkgname=csmith
pkgver=2.3.0
pkgrel=2
pkgdesc="Tool for generating random C programs"
url="https://embed.cs.utah.edu/csmith/"
arch="all"
license="BSD-2-Clause"
makedepends="m4"
subpackages="$pkgname-doc"
options="!check" # no test suite
source="https://github.com/csmith-project/csmith/archive/refs/tags/csmith-$pkgver.tar.gz
support-ppc64le.patch
fix-s390x-read_time.patch
"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"
prepare() {
default_prepare
update_config_guess
update_config_sub
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr
make
}
package() {
make DESTDIR="$pkgdir" install
# scripts depend on source tree to be available
rm "$pkgdir"/usr/bin/*.pl "$pkgdir"/usr/bin/*.in
}
sha512sums="
063dc6442a9e850fdd0557d1c7bdb199d5a762daad3418d6730dae6155101b2a11841d5eaf885f76dbea8eb212bdacedf31da7e171b4ac58f530acd435c969f9 csmith-2.3.0.tar.gz
eb91f89577b583b4a6200ae4b804577217ff71c5dfa956ac28b64a3556cdafec2c43a231770d68f2a50737a78f8e5981f6ceeed1e90c49d4218fde6a7b302c6c support-ppc64le.patch
a81623231bc917166a49370f3a3a48f4dd4f7a1b1573548c110e6aad31be64fadbf509c595c15c1ccedb881a735dac4e15a6a32385524c1eaa04a87eb6523fe7 fix-s390x-read_time.patch
"